Hello everyone,
Hello Everyone,
I am having issue with when trying to aggregate transcript abundances to the gene level (when txOut=FALSE
) but it works fine with txOut=TRUE
.
Here are the steps I followed:
- Produced bam file using Gencode transcript fasta file.
- Further sorted and index them.
- Used Nanocount to produce abundance.tsv file.
- Created gencode dataframe using gencode gtf file containing only two columns
target_id
andgene_name
- Read quant file using path command
Here is the input tsv files:
read_tsv(path)
target_id raw est_count tpm transcript_length
<chr> <dbl> <dbl> <dbl> <dbl>
1 ENST00000362079.2 0.0109 4264. 10883. 784
2 ENST00000343262.9 0.0102 3985. 10172. 945
3 ENST00000567815.5 0.00993 3891. 9931. 712
4 ENST00000501597.3 0.00902 3533. 9018. 469
5 ENST00000651669.1 0.00826 3235. 8257. 352
6 ENST00000361624.2 0.00790 3096. 7902. 1542
7 ENST00000270625.7 0.00782 3066. 7825. 573
8 ENST00000222247.10 0.00779 3051. 7788. 634
9 ENST00000229239.10 0.00753 2949. 7526. 1285
10 ENST00000530721.5 0.00744 2917. 7445. 796
Here is the tx file for aggregating transcript abundances to the gene level
tx_gencode_gtf_local
# A tibble: 3,424,907 × 2
target_id gene_name
<chr> <chr>
1 NA DDX11L2
2 ENST00000456328.2 DDX11L2
3 ENST00000456328.2 DDX11L2
4 ENST00000456328.2 DDX11L2
5 ENST00000456328.2 DDX11L2
6 NA DDX11L1
7 ENST00000450305.2 DDX11L1
8 ENST00000450305.2 DDX11L1
9 ENST00000450305.2 DDX11L1
10 ENST00000450305.2 DDX11L1
when I am running this command:
Txi_gene <- tximport(path,
type = "none",
tx2gene = tx_gencode_gtf_local,
txIdCol = "transcript_id",
abundanceCol = "tpm",
countsCol = "raw",
lengthCol = "transcript_length",
countsFromAbundance = "lengthScaledTPM",
txOut = FALSE,
ignoreTxVersion = TRUE)
I am getting error:
Error in .local(object, ...) :
None of the transcripts in the quantification files are present
in the first column of tx2gene. Check to see that you are using
the same annotation for both.
Example IDs (file): [, ...]
Example IDs (tx2gene): [ENST00000456328.2, ENST00000450305.2, ENST00000488147.1, ...]
This can sometimes (not always) be fixed using 'ignoreTxVersion' or 'ignoreAfterBar'.
when I tried txIdCol = "target_id"
, it showed error with txOut=TRUE
so I tried with txIdCol = "transcript_id"
. But it did not work. Also I tried with ignoreTxVersion=FALSE
when tx_gencode_gtf_local ENST_ID
does not have version information, but it failed with same error.
Thank you
Mohit
What was the exact error? This should have worked.
Is it possible to know the solution of above discussed issue. Since I am also experiencing the error as below:
Thanks.