Skip to content

Commit ec0f42f

Browse files
committed
Remove GFF requirement when kallisto pseudoaligner used
1 parent 1645a52 commit ec0f42f

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

bin/normalise_counts.R

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
library(optparse)
44
library(edgeR)
5-
library(tibble)
5+
library(tidyverse)
66
library(DESeq2)
77

88
option_list <- list(
@@ -24,23 +24,26 @@ log <- if (opt$log_transform == "TRUE") TRUE else FALSE
2424
outdir <- opt$outdir
2525

2626
## Read data
27-
counts_tab <- read.csv(
28-
"gene_counts_pc.tsv",
29-
header = TRUE, na.strings = c("", "NA"), sep = "\t",
30-
stringsAsFactors = FALSE
31-
)
32-
ref_gene_tab <- read.csv(
33-
"ref_gene_df.tsv",
34-
header = TRUE, na.strings = c("", "NA"), sep = "\t",
35-
stringsAsFactors = FALSE
36-
)
27+
# counts_tab <- read.csv(
28+
# "gene_counts_pc.tsv",
29+
# header = TRUE, na.strings = c("", "NA"), sep = "\t",
30+
# stringsAsFactors = FALSE
31+
# )
32+
# ref_gene_tab <- read.csv(
33+
# "ref_gene_df.tsv",
34+
# header = TRUE, na.strings = c("", "NA"), sep = "\t",
35+
# stringsAsFactors = FALSE
36+
# )
37+
38+
counts_tab <- read_tsv("gene_counts_pc.tsv")
39+
ref_gene_tab <- read_tsv("ref_gene_df.tsv")
3740

3841
gene_names <- counts_tab[["feature_id"]]
3942
counts_tab[["feature_id"]] <- NULL
40-
counts_tab <- as.data.frame(sapply(counts_tab, as.numeric))
43+
# counts_tab <- as.data.frame(sapply(counts_tab, as.numeric))
44+
45+
counts_tab <- as.data.frame(counts_tab)
4146

42-
print(head(counts_tab))
43-
print(length(gene_names))
4447
rownames(counts_tab) <- gene_names
4548

4649
# ## remove rRNA genes

0 commit comments

Comments
 (0)