Title: AttributError using GTFEntry · Issue #87 · bionumpy/bionumpy · GitHub
Open Graph Title: AttributError using GTFEntry · Issue #87 · bionumpy/bionumpy
X Title: AttributError using GTFEntry · Issue #87 · bionumpy/bionumpy
Description: I'm getting this error when processing a standard gtf. AttributeError: 'GTFEntry' object has no attribute 'feature' The relevant code is as follows: for ENTRY in GTF_DATA: if ENTRY.feature == b"gene": # Only process gene entries ATTRIBUT...
Open Graph Description: I'm getting this error when processing a standard gtf. AttributeError: 'GTFEntry' object has no attribute 'feature' The relevant code is as follows: for ENTRY in GTF_DATA: if ENTRY.feature == b"gen...
X Description: I'm getting this error when processing a standard gtf. AttributeError: 'GTFEntry' object has no attribute 'feature' The relevant code is as follows: for ENTRY in GTF_DATA: if EN...
Opengraph URL: https://github.com/bionumpy/bionumpy/issues/87
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AttributError using GTFEntry","articleBody":"I'm getting this error when processing a standard gtf. \n\n```\nAttributeError: 'GTFEntry' object has no attribute 'feature'\n```\n\nThe relevant code is as follows:\n```\n for ENTRY in GTF_DATA:\n if ENTRY.feature == b\"gene\": # Only process gene entries\n ATTRIBUTES = ENTRY.attributes.decode().split(\";\")\n```\nI'm unsure why I'm getting this error, as the gtf is pretty standard. \n\n```\n3R\tFlyBase\tgene\t17750129\t17763188\t.\t-\t.\tgene_id \"FBgn0038542\"; gene_name \"TyrR\"; gene_source \"FlyBase\"; gene_biotype \"protein_coding\";\n3R\tFlyBase\ttranscript\t17750129\t17758978\t.\t-\t.\tgene_id \"FBgn0038542\"; transcript_id \"FBtr0344474\"; gene_name \"TyrR\"; gene_source \"FlyBase\"; gene_biotype \"protein_coding\"; transcript_name \"TyrR-RB\"; transcript_source \"FlyBase\"; transcript_biotype \"protein_coding\";\n3R\tFlyBase\texon\t17758709\t17758978\t.\t-\t.\tgene_id \"FBgn0038542\"; transcript_id \"FBtr0344474\"; exon_number \"1\"; gene_name \"TyrR\"; gene_source \"FlyBase\"; gene_biotype \"protein_coding\"; transcript_name \"TyrR-RB\"; transcript_source \"FlyBase\"; transcript_biotype \"protein_coding\"; exon_id \"FBtr0344474-E1\";\n3R\tFlyBase\texon\t17757024\t17757709\t.\t-\t.\tgene_id \"FBgn0038542\"; transcript_id \"FBtr0344474\"; exon_number \"2\"; gene_name \"TyrR\"; gene_source \"FlyBase\"; gene_biotype \"protein_coding\"; transcript_name \"TyrR-RB\"; transcript_source \"FlyBase\"; transcript_biotype \"protein_coding\"; exon_id \"FBtr0344474-E2\";\n```\n\nGoogle suggests the problem is with using 'feature' instead of 'type' but I get exactly the same error regardless of the term used.\n\nIt's probably something simple that I'm doing wrong but I'm unable to figure it out.\n\nThanks.","author":{"url":"https://github.com/davidaray","@type":"Person","name":"davidaray"},"datePublished":"2025-03-21T18:57:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/87/bionumpy/issues/87"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0440a1ca-4867-7447-5a16-323f8361a30b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B5BA:178D82:636C52:87B9A3:698F3976 |
| html-safe-nonce | 54b97ed8034a0e37964b17012db458f9292b62983d7bae89b50d2b36a594eda4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNUJBOjE3OEQ4Mjo2MzZDNTI6ODdCOUEzOjY5OEYzOTc2IiwidmlzaXRvcl9pZCI6IjE2NDA4MTg0NTI0ODk3Nzk1NzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a2ed8829ac2f718fa0b3314a36eceacaa7a5d8fe38a1e6c98b02ba6ab9ab23c7 |
| hovercard-subject-tag | issue:2939258506 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/bionumpy/bionumpy/87/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a4d27dab344ad2fddce9750454591a1fde0cf82af1308bf30a294466ca385bc7/bionumpy/bionumpy/issues/87 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a4d27dab344ad2fddce9750454591a1fde0cf82af1308bf30a294466ca385bc7/bionumpy/bionumpy/issues/87 |
| og:image:alt | I'm getting this error when processing a standard gtf. AttributeError: 'GTFEntry' object has no attribute 'feature' The relevant code is as follows: for ENTRY in GTF_DATA: if ENTRY.feature == b"gen... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | davidaray |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6102991c714c1a6a27d05fb4f96ea6ca87a6750b4f093b95cc57ed1b84b145a1 |
| turbo-cache-control | no-preview |
| go-import | github.com/bionumpy/bionumpy git https://github.com/bionumpy/bionumpy.git |
| octolytics-dimension-user_id | 115636236 |
| octolytics-dimension-user_login | bionumpy |
| octolytics-dimension-repository_id | 542265970 |
| octolytics-dimension-repository_nwo | bionumpy/bionumpy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 542265970 |
| octolytics-dimension-repository_network_root_nwo | bionumpy/bionumpy |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d6ba6f2bfbf6399a7c07495a912727369e95bfe8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width