Skip to content

Commit 253ee67

Browse files
committed
added custom music modules test data
1 parent b5ea846 commit 253ee67

8 files changed

Lines changed: 64 additions & 0 deletions

File tree

2.65 MB
Binary file not shown.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Program:featureCounts v2.0.6, generated by RustQC v0.2.1
2+
Geneid Chr Start End Strand Length SAMPLE1.markdup.bam
3+
ENSG00000000001 chr1 100 200 + 100 10
4+
ENSG00000000002 chr1 300 400 + 100 25
5+
ENSG00000000003 chr1 500 600 - 100 5
6+
ENSG00000000004 chr2 100 200 + 100 0
7+
ENSG00000000005 chr2 300 400 - 100 18
8+
ENSG00000000006 chr2 500 600 + 100 42
9+
ENSG00000000007 chr3 100 200 + 100 7
10+
ENSG00000000008 chr3 300 400 - 100 3
11+
ENSG00000000009 chr3 500 600 + 100 11
12+
ENSG00000000010 chr3 700 800 - 100 22
13+
ENSG00000000011 chr4 100 200 + 100 9
14+
ENSG00000000012 chr4 300 400 + 100 14
15+
ENSG00000000013 chr4 500 600 - 100 6
16+
ENSG00000000014 chr4 700 800 + 100 31
17+
ENSG00000000015 chr5 100 200 - 100 2
18+
ENSG00000000016 chr5 300 400 + 100 17
19+
ENSG00000000017 chr5 500 600 - 100 8
20+
ENSG00000000018 chr5 700 800 + 100 4
21+
ENSG00000000019 chr5 900 1000 + 100 20
22+
ENSG00000000020 chr5 1100 1200 - 100 13

modules/music/genome.gtf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
##description: minimal GTF for nf-test stubs
2+
chr1 HAVANA gene 65419 71585 . + . gene_id "ENSG00000186092"; gene_name "OR4F5"; gene_biotype "protein_coding";
3+
chr1 HAVANA transcript 65419 71585 . + . gene_id "ENSG00000186092"; transcript_id "ENST00000641515"; gene_name "OR4F5";
4+
chr1 HAVANA exon 65419 65433 . + . gene_id "ENSG00000186092"; transcript_id "ENST00000641515"; gene_name "OR4F5";
5+
chr1 HAVANA gene 923923 944581 . + . gene_id "ENSG00000187634"; gene_name "SAMD11"; gene_biotype "protein_coding";
6+
chr1 HAVANA transcript 923923 944581 . + . gene_id "ENSG00000187634"; transcript_id "ENST00000420190"; gene_name "SAMD11";
7+
chr1 HAVANA exon 923923 924948 . + . gene_id "ENSG00000187634"; transcript_id "ENST00000420190"; gene_name "SAMD11";
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
sample liver lung kidney
2+
SAMPLE1 0.45 0.35 0.20
3+
SAMPLE2 0.10 0.60 0.30

samplesheet/samplesheet_full.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
sample,type,bam,bai
2+
RNA_FULL,RNA,https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/genomics/homo_sapiens/illumina/bam/test.rna.paired_end.sorted.chr6.bam,https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/genomics/homo_sapiens/illumina/bam/test.rna.paired_end.sorted.chr6.bam.bai

samplesheet/samplesheet_test.csv

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
sample,type,bam,bai
2+
RNA_TEST,RNA,https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/genomics/homo_sapiens/illumina/bam/test.rna.paired_end.sorted.bam,https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/genomics/homo_sapiens/illumina/bam/test.rna.paired_end.sorted.bam.bai
3+
DNA_TEST,DNA,https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/genomics/homo_sapiens/illumina/bam/test.paired_end.sorted.bam,https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/genomics/homo_sapiens/illumina/bam/test.paired_end.sorted.bam.bai
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/usr/bin/env Rscript
2+
# Generates a minimal SingleCellExperiment RDS for use in module tests.
3+
# Run once: Rscript make_test_sce.R
4+
suppressPackageStartupMessages({
5+
library(SingleCellExperiment)
6+
})
7+
8+
set.seed(42)
9+
genes <- paste0("ENSG0000000", seq_len(20))
10+
cells <- paste0("cell_", seq_len(30))
11+
tissues <- rep(c("liver", "lung", "kidney"), each = 10)
12+
samples <- rep(paste0("donor", seq_len(3)), 10)
13+
14+
counts_mat <- matrix(
15+
rpois(length(genes) * length(cells), lambda = 5),
16+
nrow = length(genes),
17+
ncol = length(cells),
18+
dimnames = list(genes, cells)
19+
)
20+
21+
sce <- SingleCellExperiment(
22+
assays = list(counts = counts_mat),
23+
colData = DataFrame(tissue = tissues, sample_id = samples)
24+
)
25+
26+
saveRDS(sce, "test_sc_reference.rds")
27+
message("Written: test_sc_reference.rds")
26.2 MB
Binary file not shown.

0 commit comments

Comments
 (0)