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

Exception handling for non-human species #17

Open
nakib103 opened this issue Sep 12, 2023 · 0 comments
Open

Exception handling for non-human species #17

nakib103 opened this issue Sep 12, 2023 · 0 comments

Comments

@nakib103
Copy link
Contributor

Description

  • For non-human species some fields are not present in the VCF files, for example polyphen
  • For non-human species primary source breaks

We need more exception handling in the code to handle these cases -

Check if index is valid -

csq_record_list[polyphen_index]

Try-except block does not work here (the code does not go to except block) -

Example Query

query variant_example {
  variant(
    by_id: {genome_id: "c7335667-93e7-11ec-a39d-005056b38ce3", variant_id: "I:84:s01-84"}
  ) {
    name
    type
    slice {
      location {
        start
        end
      }
    }
    prediction_results {
      score
      result
      analysis_method {
        tool
        version
        qualifier
      }
    }
    allele_type {
      accession_id
      value
      url
    }
    alternative_names {
      name
    }
    alleles {
      name
    }
  }
}
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