Skip to content

Commit

Permalink
Update init.skm
Browse files Browse the repository at this point in the history
  • Loading branch information
geparada authored Nov 19, 2020
1 parent 98831b6 commit e05cc4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rules/init.skm
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ if os.path.isfile('./NCBI_accession_list.txt'):
download_file.write( "numLines=$(fastq-dump.2.9.1 -X 1 -Z --split-spot $srr | wc -l)" + "\n")
download_file.write( "if [ $numLines -eq 8 ]; then cat FASTQ/${srr}_1.fastq FASTQ/${srr}_2.fastq > FASTQ/$srr.fastq && rm FASTQ/${srr}_1.fastq FASTQ/${srr}_2.fastq; fi" + "\n")
download_file.write( "if [ -f FASTQ/${srr}_1.fastq ]; then mv FASTQ/${srr}_1.fastq FASTQ/${srr}.fastq ; elif [ -f FASTQ/${srr}_2.fastq ]; then mv FASTQ/${srr}_2.fastq FASTQ/${srr}.fastq; fi" + "\n")
download_file.write( "gzip FASTQ/${srr}.fastq" + "\n") #gzip output


if os.path.isfile("./local_samples.tsv"):
Expand Down

0 comments on commit e05cc4b

Please sign in to comment.