Skip to content

harp throws an error with single-end reads #2

@dmalzl

Description

@dmalzl

I course of resolving #1 I simply copied the code for the function into my script and loaded conifur, gyro, converge and travis manually in addition. However, when using single-end files the function throws an error resulting from the undefined variable paired when calling bowtie2 in line 88. This is due to the fact that if fastqFiles2 is not given (hence NULL) the preceeding if statement is not called and paired is not set. Putting

  if(!sam){
    if(!is.null(fastqFiles2)){
      paired=TRUE
    } else{
      paired=FALSE
    }
    sam1 <- bowtie2(fastqFiles1, index1prefix, if(paired){fastqFiles2}, discordant=TRUE, appendIndexToName=TRUE, reorder=TRUE, threads=threads )
    sam2 <- bowtie2(fastqFiles1, index2prefix, if(paired){fastqFiles2}, discordant=TRUE, appendIndexToName=TRUE, reorder=TRUE, threads=threads )
  }

reolves the problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions