More posts like this
-
No @hd header returned in sam file when running bwa mem
written by MboiTui •Hello, I produced sam files with the below command: bwa mem -M -t 10\ IndexedReference\ ${sample}_R1.fastq.gz ${sample}_R2.fastq.gz\ 2> ${sample}_bwa.err > ${sample}.sam` The resulting sam file …
-
featureCounts: unable to find chromosome in SAM header
written by nklier38 •I am using featureCounts to try and create a count table for some RNA-Seq data I collected using an Oxford Nanopore platform. I have .sam …
-
Unzipping SAM files
written by storm1907 •Hi, Is there a way to get SAM files into readable FASTA format without samtools? I have a bunch of SAM files, and I need …
-
gsnap vs bbmap
written by Ada •My gsnap alignment scores were much lower (77% vs 95%) than scores received from BBMAP. How can I go about rectifying this problem?
-
gmap and gsnap
written by Ada •,How can I output gmap gsnap alignment score without the production of SAM files. I noticed you can also output to standard and m8? But …
-
Convert .sam to .bam without producing writing .sam file to storage space
written by Ada •How do I convert .sam to .bam without producing writing .sam file to storage space?
-
Question: Error in gmapR: gsnap not functioning
written by amer_ghl •Hey, I'm trying to preform a bisulfite alignment using gmapR package. This is my code: ========================= library("gmapR") ggd<-GmapGenomeDirectory(file.path(getwd(),"indices"), create=T) gg<-GmapGenome(file.path(getwd(),"test.fa"), directory=ggd, name="seq", create=T) cmet_index <- …
-
Convert sra to bam file error handling
written by c12i34 •Hi Guys,I am trying to convert some sra files into bam format. At the moment, I am using this command from `sratoolkit` sam-dump SRR390728 | …
-
Align Paired End Reads Using Blast
written by shl198<p>Hi all, Has anyone align illumina paired end reads using BLAST, I used gsnap to do the alignment first, then use BLAST to align the …
-
How To Get Junctions File Using Gsnap
written by Varun GuptaHi Everyone So I am working on rna seq data. I am using gsnap for my analysis(though I have also used tophat). With tophat , …
To get help you need to provide command line you are using.
current datasetconveys no information either.The code breaks at samtools flagstat, stating header cannot be found.
Looks like you forgot to include header when converting SAM to BAM using
samtools view.I made the correction and received this:
[main_samview] fail to read the header from test1.sam file
So it looks like the error is coming from the mapping to output .SAM file command.
The correction of -h to the SAM to BAM file conversion states that their is also failure for reading header in .BAM file.
What can I do to rectify this?
What do you get when you try to look at header of one of the files?
Or is there no header at all?
There is no header at all
Are you sure the logic of your loop is sound? It looks like you are building a new reference (looping through files) and then trying to align the same fastq files to that index with iteration of the loop.
If you simply try
does it work properly? If it does then you need to debug your loop. Not sure why you are using
>>if you are creating a new SAM files each time.I am going to debug and follow up
My files were in .fna.gz and that seemed to be the problem in producing SAM file with header.
Converted to .fna and works fine now.