Hi all,
I started to analyze scATAC Seq data. I obtained the data from SRA. I have a trouble regarding gene annotation. I used Danio_rerio.GRCz11.109.gtf file to create a GRange object using AcidGenomics package. Here is the r script I used for that:
DanioAnno <-makeGRangesFromGFF("Danio_rerio.GRCz11.109.gtf", level = c("genes", "transcripts"), ignoreVersion = T, synonyms = F)
It created the following output.
EnsemblGenes object with 32520 ranges and 8 metadata columns: (showing only the col names)
seqnames ranges strand | broadClass geneBiotype geneId geneIdVersion
<Rle> <IRanges> <Rle> | <Rle> <Rle> <Rle> <Rle>
geneName geneSource source type
<Rle> <Rle> <Rle> <Rle>
Then I performed CreateChromatinAssay while passing the just created annotation file and then created the seurat object (sobj
). Now it is giving me an error when I perform TSSEnrichment as the following code.
sobj <- TSSEnrichment(object = sobj, fast = FALSE)
Error in GetTSSPositions(ranges = annotations) :
Gene annotation does not contain gene_biotype information.
However, geneBiotype col is there. Is this error due to change of col name (geneBiotype
instead of gene_biotype
)?
Can someone can help me to figure out this error. I also appreciate it if you could share a method for gene annotation for zebrafish when performing scATAC analysis. Thank you
Please use the formatting bar (especially the
code
option) to present your post better. You can use backticks for inline code (`text` becomestext
), or select a chunk of text and use the highlighted button to format it as a code block. If your code has long lines with a single command, break those lines into multiple lines with proper escape sequences so they're easier to read and still run when copy-pasted. I've done it for you this time.Hi @ravihansa82 , I'm the developer the AcidGenomes package. Let me know if this reproducible example helps with your scATAC workflow. Note that the package consistently uses
lowerCamelCase
formatting for metadata columns, and it looks like the workflow you're using expectssnake_case
formatting.