Question: error: incorrect number of fields (1) input.bam:1
1
gravatar for kspata
11 months ago by
kspata10
kspata10 wrote:

Hi,

I am trying to parse a BAM file using readAligned. It gives me an error of incorrect number of reads. How can I resolve this error. My command is as follows. The BAM file was generated by aligning to reference fasta file using Bowtie2.

 

reads = readAligned("input.bam", type = "Bowtie")

 

Will appreciate any help!!

 

shortread readaligned • 293 views
ADD COMMENTlink modified 11 months ago by Martin Morgan ♦♦ 24k • written 11 months ago by kspata10
Answer: error: incorrect number of fields (1) input.bam:1
0
gravatar for Martin Morgan
11 months ago by
Martin Morgan ♦♦ 24k
United States
Martin Morgan ♦♦ 24k wrote:

Probably you want instead to explore GenomicAlignments::readGAlignments() and similar; readAligned() is for 'legacy' formats that you are unlikely to encounter in a modern analysis.

ADD COMMENTlink written 11 months ago by Martin Morgan ♦♦ 24k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 293 users visited in the last hour