Skip to content
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

Prepare Kallisto quantification for CIBERSORT #105

Open
iskandr opened this issue Jul 18, 2018 · 4 comments
Open

Prepare Kallisto quantification for CIBERSORT #105

iskandr opened this issue Jul 18, 2018 · 4 comments
Assignees

Comments

@iskandr
Copy link
Contributor

iskandr commented Jul 18, 2018

CIBERSORT web interface: https://cibersort.stanford.edu/

@iskandr
Copy link
Contributor Author

iskandr commented Jul 18, 2018

Use tximport to add up transcript level quantification to get per-gene values.

@julia326
Copy link
Contributor

Use something like this run script to get transcript quantification:

#!/bin/bash

set -e
set -x

mkdir -p kallisto

KALLISTO_INDEX=/mnt/md0/tim/Dropbox/sinai/big-data/references/Homo_sapiens.GRCh38.cdna.all.fa.gz.index
kallisto quant --index=$KALLISTO_INDEX --threads 4  --output-dir=kallisto vaccine-data/rna-fastq/*.fastq.gz

@timodonnell
Copy link
Contributor

R code I used to get gene-level quantifications for CIBERSORT:

source("https://bioconductor.org/biocLite.R")
biocLite("tximport")
mart <- biomaRt::useMart(
    biomart = "ENSEMBL_MART_ENSEMBL", dataset ="hsapiens_gene_ensembl", host = 'useast.ensembl.org')
t2g <- biomaRt::getBM(
     attributes = c("ensembl_transcript_id", "ensembl_gene_id", "external_gene_name"), mart = mart, verbose = 92)
mapping <- dplyr::select(t2g, c("ensembl_transcript_id", "external_gene_name"))
tx <- tximport::tximport("abundance.h5", type="kallisto", tx2gene = mapping, ignoreTxVersion=T)
write.csv(tx, "abundance.gene.common_names.csv")

@timodonnell
Copy link
Contributor

# Kallisto index generation
kallisto index -i Homo_sapiens.GRCh38.cdna.all.fa.gz.index Homo_sapiens.GRCh38.cdna.all.fa.gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants