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

update the gff2json.py to integrate into nextflow #141

Open
4 tasks done
anwarMZ opened this issue Oct 6, 2023 · 2 comments
Open
4 tasks done

update the gff2json.py to integrate into nextflow #141

anwarMZ opened this issue Oct 6, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@anwarMZ
Copy link
Member

anwarMZ commented Oct 6, 2023

Is your feature request related to a problem? Please describe.
The gff2json.py script requires a dictionary file. This is a cumbersome step.
For example for mpox

{
  "reference": "Nigera-2018",
  "accession": "NC_063383.1",
  "species": "https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?id=10244",
  "genome": "ACTG"
 }

Describe the solution you'd like
This can be removed by providing the

  • reference: can be a string provided or use the accession
  • accession: can be parsed from the reference genome fasta file (which is always going to be available)
  • species: already available in the gff file. starting with ##
  • genome: can be parsed from the reference genome file

example updated usage -
usage: gff2json.py [-h] [--gff_file GFF_FILE] [--ref_fasta FASTA] [--output_json JSON] [optional; --colors_scheme JSON]

@anwarMZ anwarMZ added the enhancement New feature or request label Oct 6, 2023
@anwarMZ
Copy link
Member Author

anwarMZ commented Oct 6, 2023

Removing the genome key from the output fasta file so we don't need the fasta file as an argument.

  • accession can be parsed from the input gff file.

@anwarMZ
Copy link
Member Author

anwarMZ commented Oct 6, 2023

For the colors, intergenic is grey by default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants