junjunlab / transPlotR

An elegant package to visualize gene structures
Other
69 stars 3 forks source link

不能指定范围作图 #9

Open shaoxiong2588 opened 10 months ago

shaoxiong2588 commented 10 months ago

coding gene

trancriptVis(gtfFile = gtf1, Chr = 17, posStart = 36783355, posEnd = 36783400) Error in map(): ℹ In index: 1. Caused by error in dplyr::filter(): ℹ In argument: gene_id == gid[x]. Caused by error: ! object 'gene_id' not found Run rlang::last_trace() to see where the error occurred. Warning message: Unknown or uninitialised column: gene_id.

I am encountering an issue with the trancriptVis function. The error suggests that it cannot find the 'gene_id' column, even though the column does exist in my data. I have checked the data structure, case sensitivity, and library loading. How can I resolve this issue? Running rlang::last_trace() did not provide additional insights. Any help would be appreciated.

binzhengbin commented 3 months ago

同问

binzhengbin commented 3 months ago

trancriptVis(gtfFile = gtf,

  • Chr = 'chr2',
  • posStart = 1427100000,
  • posEnd = 1427600000) Error in map(): ℹ In index: 1. Caused by error in dplyr::filter(): ℹ In argument: gene_id == gid[x]. Caused by error: ! 找不到对象'gene_id' Run rlang::last_trace() to see where the error occurred. Warning message: Unknown or uninitialised column: gene_id.
junjunlab commented 3 months ago

数据代码发我看看