Go Back   SEQanswers > Bioinformatics > Bioinformatics

Similar Threads
Thread Thread Starter Forum Replies Last Post
Samtools "is recognized as '*'" "truncated file" error axiom7 Bioinformatics 3 11-26-2014 03:53 AM
Trouble converting SAM to BAM, all 'chrM' recognized as '*'? SEQanswer Bioinformatics 6 09-16-2013 10:31 AM
Appropriate Reference Format HSG_student1 Genomic Resequencing 1 04-26-2011 12:23 AM
TopHat: output is not recognized by UCSC geriatrics1200 RNA Sequencing 2 11-06-2009 11:13 AM
Reference genome for MAQ - split reference genome by chromosome or not? inesdesantiago Bioinformatics 4 02-18-2009 09:44 AM

Thread Tools
Old 04-01-2012, 05:28 AM   #1
Location: Vermont

Join Date: Apr 2012
Posts: 14
Default [sam_read1] reference 'chrN.fa' is recognized as '*'


I aligned some human samples with Casava, and then converted the alignments to SAM using samtools: --read1=file_R1.export.txt.gz --read2=file_R2.export.txt.gz > file.sam

Then I try to convert to bam:

samtools view -bt genome.fa.fai file.sam > file.bam

but I get a lot of

[sam_read1] reference 'chr8.fa' is recognized as '*'.
[sam_read1] reference 'chr11.fa' is recognized as '*'.

There was a similar thread that suggested changing the header as follows:

The first line needs to be header.
The second line needs to be a dummy read group line
The next lines need to contain the chromosomes and their lengths.

An example of a good header is as follows:

@HD VN:1.0 SO:unsorted
@RG ID:unknownReadGroup SM:unknownSample
@SQ SN:chrI AS:ce6_32r_index LN:15072421
@SQ SN:chrII AS:ce6_32r_index LN:15279323
@SQ SN:chrIII AS:ce6_32r_index LN:13783681
@SQ SN:chrIV AS:ce6_32r_index LN:17493785
@SQ SN:chrM AS:ce6_32r_index LN:13794
@SQ SN:chrV AS:ce6_32r_index LN:20919568
@SQ SN:chrX AS:ce6_32r_index LN:1771885

where do I get all of that information? I also might have to do this over and over again so I was looking for some software or precise ways so that I can write a script to do it.

Thanks in advance,

ramirob is offline   Reply With Quote
Old 03-25-2013, 03:39 AM   #2
Junior Member
Location: ahmedabad,India

Join Date: Mar 2013
Posts: 1

Hi, Ramiro

I have just entered in 'seqanswers' and saw your question

I suggest you to check your GENOME file - "genome.fa.fai"
Is it in proper FASTA format ?

Correct FASTA formated GENOME file will solve your problem.

naman.neoanderson007 is offline   Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -8. The time now is 01:23 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Single Sign On provided by vBSSO