Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CNV calling #223

Closed
phdstudent-oje opened this issue Jan 29, 2021 · 2 comments
Closed

CNV calling #223

phdstudent-oje opened this issue Jan 29, 2021 · 2 comments

Comments

@phdstudent-oje
Copy link

@phdstudent-oje phdstudent-oje commented Jan 29, 2021

Dear @tobiasrausch,

Hi. I'm Oh.

I executed the delly for Germline CNV calling.

I want to ask about the genotype of my called CNVs (c1.cnv.bcf), or merge the calls (merged.bcf).

ref_fasta=${home_dir}/Reference/Homo_sapiens_assembly38.fasta
map_file=${home_dir}/Tools/delly/map/Homo_sapiens.GRCh38.dna.primary_assembly.fa.r101.s501.blacklist.gz

### call CNV
delly cnv \
    -o c1.cnv.bcf \
    -g ${ref_fasta} \
    -m ${map_file} \
    ${sample_name}_recal.bam 

### Merge CNV into a unified site list
code not shown

### Genotype CNVs for each samples
code not shown

### Merge genotype using bcftools
bcftools merge -m id -O b -o merged.bcf c1.geno.bcf c2.geno.bcf ... c100.geno.bcf 

### Filter for germline CNVs
delly classify -f germline -o filtered.bcf merged.bcf

All genotype of CNVs is "./." as below.

image

As I know, "./." is non-call.

Anyway, I only have to use "RDCN", so does it matter?

Many thanks.

Oh.

@tobiasrausch
Copy link
Member

@tobiasrausch tobiasrausch commented Feb 17, 2021

Yes, please use CN or RDCN. The long answer is:

For copy-number variants delly is currently not using the GT field because that's commonly used for hom. ALT (1/1), het. (0/1) and hom. REF (0/0). For copy-number variants I do not know the allelic distribution. For instance if the total copy-number of a segment is 8 the allelic copy-numbers could be 4 and 4, or 8 and 0, or 1 and 7, ...

Because of that issue delly only outputs the total copy-number in FORMAT:CN and the copy-number likelihoods for each copy-number state (FORMAT:CNL).

Loading

@phdstudent-oje
Copy link
Author

@phdstudent-oje phdstudent-oje commented Feb 19, 2021

Dear @tobiasrausch,

Hi I'm Oh.

Thanks for your reply.

Have a nice day!

Oh.

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants