Entering edit mode
4 months ago
iamsmor
•
0
hi everyone ı need to create bam index for variant analysis.but ı havenot sam files only bam files avaible.how ı can create it? ı 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 ı 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 .