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

Missing key SEQ for <INS> #65

Open
brentp opened this issue May 14, 2021 · 6 comments
Open

Missing key SEQ for <INS> #65

brentp opened this issue May 14, 2021 · 6 comments

Comments

@brentp
Copy link

brentp commented May 14, 2021

Hi, I am trying to use paragraph to genotype manta calls. I get this error:

  Exception: Missing key SEQ for <INS> at 1:145235303; 

and that variant is indeed:

1       145235303       .       T       <INS>   0       .       END=145235303;SVTYPE=INS;CIPOS=0,14;CIEND=0,14;HOMLEN=14;HOMSEQ=GGAT
ATCAGGTTTT;LEFT_SVINSSEQ=GGATATCAGGTTTTCCTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTAAAGTGTGTGGGTCTTT;RIGHT_SVINSSEQ=GACCTCGTGATCCGCCTGCCTCGG
CCTCCCAAAGTGCTGGGATTACAGGCGTGAGCCACCGCGCCCGGCC

so it has left and right, but not SEQ. Is there something I can do to have paragraph genotype these? For example setting SEQ = LEFT_SEQ + N*100 + RIGHT_SEQ ?

@brentp
Copy link
Author

brentp commented May 17, 2021

Bump. I'm wondering if setting SEQ = LEFT_SVINSSEQ + N*100 + RIGHT_SVINSSEQ
will work with the machinery in paragraph. I can preprocess the VCF to do this but want some idea that it does not violate some internal assumptions.

Is there also some way to genotype BND elements?

thanks!

brentp added a commit to brentp/paragraph that referenced this issue May 17, 2021
brentp added a commit to brentp/paragraph that referenced this issue May 17, 2021
brentp added a commit to brentp/paragraph that referenced this issue May 17, 2021
@atongsa
Copy link

atongsa commented Jun 3, 2021

what is a homeseq in your info

@atongsa
Copy link

atongsa commented Jun 3, 2021

vim paragraph/lib/python3/grm/vcfgraph/vcfgraph.py

edit this block to your insert SEQ is ok

        if alt == "<INS>":

@traxexx
Copy link
Contributor

traxexx commented Jun 6, 2021

When the full insertion sequence cannot be assembled, Manta will report the sequence near breakpoints instead. Paragraph only uses sequences around breakpoints for genotyping, so @brentp solution should work.

@aksenia
Copy link

aksenia commented Aug 10, 2021

Nice hack!
vcf.info["LEFT_SVINSSEQ"] + ('N' * 200) + vcf.info["RIGHT_SVINSSEQ"]

will throw an error though, as vcf.info["LEFT_SVINSSEQ"] is returned as a tuple ("ACC...T",), so vcf.info["LEFT_SVINSSEQ"][0] is what will be needed to get to the seq.

@brentp
Copy link
Author

brentp commented Aug 11, 2021

Indeed. I am accumulating all the changes here: master...brentp:bp-dev

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

4 participants