Skip to content

Commit c397b1f

Browse files
concoct: use bai from metadata
1 parent cc6e9fc commit c397b1f

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

tools/concoct/concoct_coverage_table.xml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,13 @@
1010
mkdir 'mapping' &&
1111
#if $mode.type == 'individual'
1212
#set $identifier = re.sub('[^\s\w\-\\.]', '_', str($mode.bamfile))
13-
ln -s '$mode.bamfile' 'mapping/${identifier}.sorted.bam' &&
14-
samtools index 'mapping/${identifier}.sorted.bam' 'mapping/${identifier}.bam.bai' &&
15-
mv 'mapping/${identifier}.sorted.bam' 'mapping/${identifier}.bam' &&
13+
ln -s '$mode.bamfile' 'mapping/${identifier}.bam' &&
14+
ln -s '$mode.bamfile.metadata.bam_index' 'mapping/${identifier}.bam.bai'
1615
#else
1716
#for $e in $mode.bamfiles
1817
#set $identifier = re.sub('[^\s\w\-\\.]', '_', str($e.element_identifier))
19-
ln -s '$e' 'mapping/${identifier}.sorted.bam' &&
20-
samtools index 'mapping/${identifier}.sorted.bam' 'mapping/${identifier}.bam.bai' &&
21-
mv 'mapping/${identifier}.sorted.bam' 'mapping/${identifier}.bam' &&
18+
ln -s '$e' 'mapping/${identifier}.bam' &&
19+
ln -s '$e.metadata.bam_index' 'mapping/${identifier}.bam.bai' &&
2220
#end for
2321
#end if
2422
concoct_coverage_table.py

0 commit comments

Comments
 (0)