Questions about transfering wgs file to reference genome file
0
0
Entering edit mode
18 days ago
me • 0

Hi, I have a task to transfer cram file to fa file. For example, I have a cram file named as chr_123.cram.

I intend to use samtools to transfer this file to fa file, with reference genome hg38.fa. The out file should be chr_123.fa.

My chr_123.fa should contain chr information, for example:

>chr1
........................

But my current method (samtools) only uses my fa file, and my file does not contain chr information. It contains information like:

>H25LYCCXX150109:3:2222:11535:23653/1
GGGTTAGGGTTAGGGTTAGGGTTAGGGTTAGGGTTAGGGTTAGGGTTAGGGTTAGGGTTAGGGTTAGGGTTAGGGATATCGGAAGAGCACACGTCTGAACTCCGGTTAGGTATGCGTATAGCGTATGGGGTCTTGTGATTGAAAAAGTAAG

Thanks.

fasta cram genome • 327 views
ADD COMMENT
0
Entering edit mode

What does "transfer" mean? Is this aligned data and you want a consensus sequence? What exactly do you need.

ADD REPLY
0
Entering edit mode

Hi, thanks for your reply. I think it may not be teh consensus sequence. I intend to have an individual genome file, that is, each chr contains individual sequence information.

ADD REPLY
0
Entering edit mode

I intend to have an individual genome file, that is, each chr contains individual sequence information.

That is what a consensus sequence is. See https://www.htslib.org/doc/samtools-consensus.html

ADD REPLY
0
Entering edit mode

Thanks a lot. That seem the exact thing I am looking for!

ADD REPLY

Login before adding your answer.

Traffic: 2621 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6