Hey I know there are alot of posts about samtool errors but I have yet to find a solution.
When I run
$ samtools view Reads.bam >reads.sam -bS
[samopen] no @SQ lines in the header.
[sam_read1] missing header? Abort!
Additionally when I tried the following two options I got errors as well-bash-$samtools view -T Reference.fa Reads.bam >reads.sam -bS
[sam_header_read2] 1 sequences loaded.
[sam_read1] reference 'SO:unsorted' is recognized as '*'.
Parse error at line 1: invalid CIGAR character
Aborted
$ samtools view -bt Reference.fa.fai Reads.bam > reads.sam
[sam_header_read2] 1 sequences loaded.
[sam_read1] reference 'SO:unsorted' is recognized as '*'.
Parse error at line 1: invalid CIGAR character
Aborted
Additionally I tried this but the sam file cam out blank
$ samtools view -h SRR519779test_Aligned_LW.dat.bam | awk -F'\t' 'BEGIN { dict[65] dict[147]} $2 in dict' >reads.sam
Thanks for any help
Leanne
When I run
$ samtools view Reads.bam >reads.sam -bS
[samopen] no @SQ lines in the header.
[sam_read1] missing header? Abort!
Additionally when I tried the following two options I got errors as well-bash-$samtools view -T Reference.fa Reads.bam >reads.sam -bS
[sam_header_read2] 1 sequences loaded.
[sam_read1] reference 'SO:unsorted' is recognized as '*'.
Parse error at line 1: invalid CIGAR character
Aborted
$ samtools view -bt Reference.fa.fai Reads.bam > reads.sam
[sam_header_read2] 1 sequences loaded.
[sam_read1] reference 'SO:unsorted' is recognized as '*'.
Parse error at line 1: invalid CIGAR character
Aborted
Additionally I tried this but the sam file cam out blank
$ samtools view -h SRR519779test_Aligned_LW.dat.bam | awk -F'\t' 'BEGIN { dict[65] dict[147]} $2 in dict' >reads.sam
Thanks for any help
Leanne
Comment