Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
urmi-21 committed Feb 24, 2020
1 parent e33fdc0 commit f5e28f3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ install:
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
- conda activate base
- conda install -c bioconda transdecoder
- conda install -c bioconda diamond

Expand Down
5 changes: 4 additions & 1 deletion pyrpipe/sra.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,11 +419,14 @@ def run_fasterqdump(self,delete_sra=False,verbose=False,quiet=False,logs=True,**
del kwargs['-o']


#determine threads if not specified
if '-e' not in kwargs:
kwargs['-e']=str(self.threads)
#execute command

fstrqd_Cmd=['fasterq-dump']
fstrqd_Cmd.extend(pu.parse_unix_args(fasterqdumpArgsList,kwargs))
fstrqd_Cmd.extend(['-e',str(self.threads)])

#add location
fstrqd_Cmd.extend(['-O',self.location])
#add output filename. output will be <srr_accession>.fastq or <srr_accession>_1.fastq and <srr_accession>_2.fastq
Expand Down
2 changes: 1 addition & 1 deletion tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def test_pipeline1():
st=sraOb.download_sra()
assert st==True,"SRA download failed"

st=sraOb.run_fasterqdump(delete_sra=False,**{"-e":"8","-f":"","-t":workingDir})
st=sraOb.run_fasterqdump(delete_sra=False,**{"-f":"","-t":workingDir})
assert st==True,"fqdump failed"

bbdOpts={"ktrim":"r","k":"23","mink":"11","qtrim":"'rl'","trimq":"10","--":("-Xmx2g",),"ref":testVars.bbdukAdapters}
Expand Down

0 comments on commit f5e28f3

Please sign in to comment.