-
Notifications
You must be signed in to change notification settings - Fork 426
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
name is not defined in paftools.js gff2bed #422
Comments
Please try the latest paftools. It should have resolved the issue. |
Thanks for the quick response. This works for the GTF, so I can continue with that, but just to let you know, it doesn't work with the GFF (maybe a separate issue?):
|
Then use GTF. I think NCBI GFF3 is problematic more or less, and is inconsistent with the corresponding GTF. Gencode/ensembl GTF and GFF3 pretty much have the same information. |
I am reopening this issue in case I may come back to it and make further improvement for NCBI GFF3. |
I found the GTF of human and mouse from ENSEMBL all have gene_id and gene_name, |
I am still getting the original "...ReferenceError: name is not defined..." as above with minimap2 2.17-r941 (latest version of paftools.js I assume). I'm trying to use the --junc-bed option and only have the gtf. |
Thank you for all your excellent work on minimap2, we use it every day.
I'm trying to convert the NCBI GRCh38 RefSeq annotation to BED format for aligning with minimap2 using paftools.js gff2bed. As per your advice, I'm using the no_alt_analysis GRCh38, and have got the full_analysis_set GFF and GTF from the same folder:
I get the following error when running gff2bed, with the GTF or GFF (minimap2 v2.17 release):
The
name
variable used at line 1593 is set in theif
statements at lines 1567 and 1574, but it is not initialised; instead, agname
variable is initialised at line 1562 but does not appear to be used.If I change the
name
variable togname
, the command works, but I only ever getN/A
for gene names; the NCBI annotations havegene_id
andgene
, but notgene_name
. However, changinggene_name
togene_id
orgene
, or adding additionalelse if
statements to check forgene_id
orgene
, doesn't work either.Please could you look into this? Should I be using a different annotation? Or is there a fix that will include the NCBI gene names? Many thanks.
The text was updated successfully, but these errors were encountered: