# HG changeset patch # User jackcurragh # Date 1652434308 0 # Node ID 5b1395ac1501a6ffc6d91f73c22c687af1b32cda # Parent fe590b3f8b1adfc6a72e79e58cf8110ad8fc963c Uploaded diff -r fe590b3f8b1a -r 5b1395ac1501 bowtie_genome_wrapper/bowtie_genomic_wrapper.py --- a/bowtie_genome_wrapper/bowtie_genomic_wrapper.py Fri Apr 22 11:34:02 2022 +0000 +++ b/bowtie_genome_wrapper/bowtie_genomic_wrapper.py Fri May 13 09:31:48 2022 +0000 @@ -411,10 +411,16 @@ # have to nest try-except in try-finally to handle 2.4 try: # prepare actual mapping commands + if options.paired == 'paired': - cmd2 = 'bowtie %s %s -1 %s -2 %s > %s' % ( aligning_cmds, ref_file_name, options.input1, options.input2, options.output ) + # cmd2 = 'bowtie %s %s -1 %s -2 %s > %s | samtools view -bS > %s' % ( aligning_cmds, ref_file_name, options.input1, options.input2, options.output, options.output ) + cmd2 = 'bowtie %s %s -1 %s -2 %s > %s' % ( aligning_cmds, ref_file_name, options.input1, options.input2, options.output ) + else: + print('bowtie %s %s %s | samtools view -bS > %s' % ( aligning_cmds, ref_file_name, options.input1, options.output )) + # cmd2 = 'bowtie %s %s %s | samtools view -bS > %s' % ( aligning_cmds, ref_file_name, options.input1, options.output ) cmd2 = 'bowtie %s %s %s > %s' % ( aligning_cmds, ref_file_name, options.input1, options.output ) + # align tmp = tempfile.NamedTemporaryFile( dir=tmp_index_dir ).name with open(tmp, 'w') as tmp_stderr: diff -r fe590b3f8b1a -r 5b1395ac1501 bowtie_genome_wrapper/bowtie_genomic_wrapper.xml --- a/bowtie_genome_wrapper/bowtie_genomic_wrapper.xml Fri Apr 22 11:34:02 2022 +0000 +++ b/bowtie_genome_wrapper/bowtie_genomic_wrapper.xml Fri May 13 09:31:48 2022 +0000 @@ -1,7 +1,9 @@ - - + + Align to the Genome with Bowtie bowtie + samtools + bowtie --version @@ -160,7 +162,7 @@ - + @@ -427,7 +429,7 @@ - @@ -545,246 +547,18 @@ -p is the number of threads. You need to replace the + with 2 dashes. chrM_base needs to be the base location/name of the index files. --> - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + diff -r fe590b3f8b1a -r 5b1395ac1501 bowtie_genome_wrapper/tool-data/bowtie_indexes.loc.sample --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bowtie_genome_wrapper/tool-data/bowtie_indexes.loc.sample Fri May 13 09:31:48 2022 +0000 @@ -0,0 +1,9 @@ +mus_musculus_m28 m28 Mus musculus (m28) Genome /data2/indices/bowtie/genome/mus_musculus_m28/mus_musculus_m28_genome +drosophila_melanogaster_dm6 dm6 Drosophila melanogaster (dm6) Genome /data2/indices/bowtie/genome/drosophila_melanogater_dm6/drosophila_melanogater_dm6_genome +drosophila_melanogater_dm3 dm3 Drosophila melanogaster (dm3) Genome /data2/indices/bowtie/genome/drosophila_melanogaster_dm3/drosophila_melanogaster_dm3_genome +sacCer_9 sacCer9 Saccharomyces cerevisiae (v9) Genome /data2/indices/bowtie/genome/sacCer_9/sacCer_9_genome +sarCer_3 sacCer3 Saccharomyces cerevisiae (v3) Genome /data2/indices/bowtie/genome/sacCer_3/sacCer_3_genome +E_coli_K12_MG1655 e_coli Escherichia coli (K12 MG1655) Genome /data2/indices/bowtie/genome/E_coli_K12_MG1655/E_coli_K12_MG1655_genome +Arabidopsis araThal Arabidopsis thaliana (TAIR10) Genome /data2/indices/bowtie/genome/Arabidopsis/Arabidopsis_genome +homo_sapiens_hg19 hg19 Homo sapiens (hg19) Genome /data2/indices/bowtie/genome/homo_sapiens_hg19/homo_sapiens_hg19_genome +homo_sapiens_hg38 hg38 Homo sapiens (hg38) Genome /data2/indices/bowtie/genome/homo_sapiens_hg38/homo_sapiens_hg38_genome \ No newline at end of file diff -r fe590b3f8b1a -r 5b1395ac1501 bowtie_genome_wrapper/tool-data/bowtie_indices.loc.sample --- a/bowtie_genome_wrapper/tool-data/bowtie_indices.loc.sample Fri Apr 22 11:34:02 2022 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -homo_sapiens_hg19 hg19 Homo sapiens (hg19) /data2/indices/bowtie/genome/homo_sapiens_hg19/homo_sapiens_hg19_genome -homo_sapiens_hg38 hg38 Homo sapiens (hg38) /data2/indices/bowtie/genome/homo_sapiens_hg38/homo_sapiens_hg38_genome -mus_musculus_m28 m28 Mus musculus (m28) /data2/indices/bowtie/genome/mus_musculus_m28/mus_musculus_m28_genome -drosophila_melanogaster_dm6 dm6 Drosophila melanogaster (dm6) /data2/indices/bowtie/genome/drosophila_melanogater_dm6/drosophila_melanogater_dm6_genome -sacCer_9 sacCer9 Saccharomyces cerevisiae (v9) /data2/indices/bowtie/genome/sacCer_9/sacCer_9_genome -sarCer_3 sacCer3 Saccharomyces cerevisiae (v3) /data2/indices/bowtie/genome/sacCer_3/sacCer_3_genome -E_coli_K12_MG1655 e_coli Escherichia coli (K12 MG1655) /data2/indices/bowtie/genome/E_coli_K12_MG1655/E_coli_K12_MG1655_genome -Arabidopsis araThal Arabidopsis thaliana (TAIR10) /data2/indices/bowtie/genome/Arabidopsis/Arabidopsis_genome \ No newline at end of file diff -r fe590b3f8b1a -r 5b1395ac1501 bowtie_genome_wrapper/tool_data_table_conf.xml.sample --- a/bowtie_genome_wrapper/tool_data_table_conf.xml.sample Fri Apr 22 11:34:02 2022 +0000 +++ b/bowtie_genome_wrapper/tool_data_table_conf.xml.sample Fri May 13 09:31:48 2022 +0000 @@ -1,8 +1,8 @@ - +
value, dbkey, name, path - +