Entering edit mode
2.8 years ago
iamsmor
•
0
hi everyone I need to create bam index for variant analysis.but I havenot sam files only bam files avaible.how I can create it? I tried
for i in $(ls $RNA_HOME/alignments/hisat2/*.bam | tr -s '/.' ' ' | awk '{print $(NF-1)}')
do
samtools sort $RNA_HOME/alignments/hisat2/$i.bam > $i.bam
samtools index $i.bam
echo indexing of $i finished
done
and I get an error
[bam_sort_core] merging from 9 files and 1 in-memory blocks...
Thank you for any little help
oh thank you. this answer gave me such relief .