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

The problem of false negative in male sex chromosomes #883

Open
zhuying412 opened this issue May 31, 2024 · 0 comments
Open

The problem of false negative in male sex chromosomes #883

zhuying412 opened this issue May 31, 2024 · 0 comments

Comments

@zhuying412
Copy link
Contributor

Hello,
I am currently dealing with a false-negative case involving a male sample. When the log2 ratio for genes on the sex chromosomes reaches 1.4, we suspect it might indicate a potential mosic-duplication. However, the do_call() function converts this into a copy number (cn=1) through the operation outarr["cn"] = absolutes.round().astype("int"), which is then recorded in the CNV file.

When exporting to VCF format using the segments2vcf() function, this entry is filtered out because at this point, ncopies==1 and abs_exp==1. This scenario wouldn't occur on diploid chromosomes, where typically would be ncopies==3 and abs_exp==2 for such a scenario.

The relevant code snippet for the filtering logic during VCF export is as follows:

for out_row, abs_exp in zip(out_dframe.itertuples(index=False), abs_expect):
    if (
        out_row.ncopies == abs_exp
        or
        # To accommodate data from the faulty v0.7.1 version (#53)
        not str(out_row.probes).isdigit()
    ):
        # Skip regions with neutral copy number
        continue  # or mark as "CNV" for subclonal events?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant