Genomics: Gene Expression, Single-cell and Variants
Bulk RNA-seq count tables, single-cell RNA-seq, and variant calls with pool-seq and GWAS summary statistics: checks, figures that stay readable at hundreds of samples, R-checked methods, publication reports and the whole analysis to rerun.
Start from a table of read counts, one row per gene and one column per sample, such as the output of featureCounts or HTSeq. The studio works through six steps and runs the method the field recommends for your data without you having to choose it.
- DataUpload your count table and sample sheet (Upload your files: the larger file is taken as the count table and the sample sheet is filled in from the other), choose a table already in a project, or load the interferon sample. 'Preparing your data' on this step shows what the two files look like, the column names the studio reads, and example files to start from. Say which group each sample is in; add a batch (or the donor, when samples are paired) and sex if you have them. The species is read from the gene IDs and can be changed. Human and mouse IDs convert offline between symbols, Ensembl and Entrez, and a table of Ensembl IDs is labelled with gene symbols automatically.
- CheckLibrary sizes, genes removed for having too few reads (edgeR filterByExpr), the spread of each sample, and checks on the design: replicates, a batch that cannot be separated from a group, outlier samples, and sex inferred from XIST and Y-chromosome genes against your sheet. Figures use the variance-stabilising transformation, or rlog for small studies.
- ExplorePrincipal component analysis, multidimensional scaling (limma plotMDS), sample correlation with clustering, a heatmap of the most variable genes, and k-means clusters of those genes with an elbow plot, each cluster's profile and the Hallmark processes it is enriched for. A co-expression network (WGCNA) groups genes into modules, relates each module to the condition, sex and any numeric column of the sample sheet, and lists its hub genes.
- CompareDESeq2 for raw counts (fold changes shrunk with apeglm), limma-voom or limma-trend as alternatives, and limma-trend for TPM, FPKM or log values. A minimum change can be tested rather than filtered after (DESeq2 lfcThreshold, limma treat), and hidden batch effects can be estimated with SVA and added to the design. Volcano, MA, top-gene heatmap, p-value histogram and dispersion or variance-trend figures, diagnostics, a chromosome map, a table of every gene to download, and an UpSet plot of the genes several comparisons share. Time courses, dose series and three or more groups are tested in one step: any change across the levels, or a trend with a number.
- PathwaysGene set enrichment analysis ranks every tested gene by its test statistic; over-representation tests the genes higher and lower separately, against the genes tested rather than the whole genome, and can be corrected for gene length (goseq) when the table carries lengths. Hallmark, Reactome, WikiPathways and Gene Ontology sets from MSigDB are bundled for human and mouse. Figures: enrichment scores, the running-score curve, an enrichment map, dot plots, a tree of sets grouped by shared genes, Reactome pathway diagrams coloured by fold change, and protein interactions among the significant genes from STRING. Click a gene or a set to follow it through every figure.
- ReportA methods paragraph written from your result, with references, and R and Python scripts that reproduce it, and a GEO submission package (MINSEQE): the metadata workbook, count matrices, comparison table and a checklist of what only you can add. Every comparison is saved to Run History, where it reopens without running again.
Starting from reads (FASTQ)#
Have FASTQ files instead of a count table? Choose FASTQ reads under What do you have? in the Data step, upload the files (several at once; large files are sent in pieces and resume if the connection drops), choose the species and run. Nexmetry trims the reads with fastp, quantifies them against the species' Ensembl transcriptome with Salmon on a separate alignment server, and saves the count table to the project for the steps below, with the reads, quality and mapping rate of every sample. Read 1 and read 2 are paired from the file names. Try it first with the example reads, a small public yeast sample. You can ask for the FASTQ files to be deleted once they are counted, to free their storage.
From the moment a run is queued, the card says about how long is left and the time to expect the count table: the alignment worker starting, the species' index the first time it is used, each sample by the size of its reads, then the genes. The estimate starts from this server's earlier runs and gets closer as samples finish. When the run is done, its count table is selected and the page moves on to it; the run's reads and mapping per sample stay under FASTQ reads.
Alignment runs use your plan's monthly machine-hours (Pro, Team and Enterprise include them; the Plans page shows how many): the card shows the hours used this month and about how many a run will take before you start it. A run that would go over your hours, or over the platform's monthly limit, waits and starts by itself when the month turns or the limit is raised; it is never refused for it and never charged extra.
Across the three genomics pages#
- Genomics, in the sidebar, holds the three pages: Gene Expression (RNA-seq), Single-cell RNA-seq, and Variants & Populations (with pool-seq and GWAS summary statistics). A switcher at the top of each page moves between them and keeps the project you have open; Ctrl+K finds each one by name.
- Every page now has what Gene Expression has: the answer in plain words (computed from the numbers, not by AI), a publication report with Word, PDF, Excel and CSV, the whole analysis as one zip (analysis.R, analysis.py that checks itself against the page, every table and figure, and a README naming the input files), AI interpretation of the report's numbers, Save and Run History, and Save to report.
- Large studies stay readable: past a few dozen samples the sample names give way to the count in the axis title, PCA and MDS name only the outlying samples, box plots of hundreds of samples become one band with the medians as a line, heatmaps of hundreds of columns are drawn as one image with a colour scale, and groups past eight keep their own colours. A 325-sample GEO study opens and runs on every step.
- Single-cell adds cluster numbers on the UMAP, the UMAP split by condition, reads against genes for every cell coloured by why it was removed, quality of each sample before filtering, feature plots of the marker genes, their violins per cluster and a heatmap of them across cells, the cell-type scores behind each name, cluster proportions by condition with each sample as a point, and pseudotime on a continuous colour scale.
- Variants adds heterozygosity against missing calls per sample with the ±3 SD lines, missing calls and depth per variant, runs of homozygosity along the genome, LD decay per cohort (r² by distance, matching R cor()), an iHS scan within a cohort and the EHH decay around a chosen SNP (both matching rehh exactly), XP-EHH marked at +2 and −2, Manhattan plots that name their lead loci with a 1e-5 line, and QQ plots with the 95% band expected under no association.
- Gene Expression adds the genes behind PC1 and PC2, genes detected per sample, PCA before and after removing a batch (limma removeBatchEffect), DESeq2's independent-filtering curve, cell types compared between groups, fold change against fold change between two comparisons, a gene-concept network of the top gene sets, the eigengene network of the co-expression modules, and module membership against gene significance for the module closest to a trait.
- Venn diagrams sit wherever lists overlap: the genes shared between the comparisons you have run, the genes shared between the significant pathways, the marker genes shared between single-cell clusters, the candidate regions several selection scans flag, and the polymorphisms shared between cohorts or private to each (counted for a VCF of any size, matching R). Each Venn takes up to four lists, an UpSet plot shows them all, and clicking a region lists its members with a CSV.
- A saved analysis reopens as it was: every result on the page and the settings behind it come back without running anything again, including Several comparisons, the power plan, pseudotime, pseudobulk tables, the selection and haplotype scans, GWAS and pool-seq. A figure with several panels exports with all of them, and Back and Next under each analysis move to the ones beside it.
- More field-standard figures, each checked against its R package: what drives each principal component (group, batch, library size) and relative log expression; pathway activity in every sample (ssGSEA, as GSVA); the pathways of several comparisons side by side (as clusterProfiler compareCluster); several GSEA curves on one axis and the leading-edge fold changes as ridges; the variable-gene plot, doublet scores (cxds, as scds) and genes along pseudotime as curves and a heatmap; ancestry proportions for K = 2 to 8 with K chosen by held-out genotypes; kinship against IBS0; the joint site frequency spectrum of two cohorts; an LD heatmap of a region; isolation by distance with a Mantel test; and a Miami plot of two association scans.
- Five further analyses, each checked against R: sources of variation (how much of each gene's variance the group, batch, sex or donor explains, as variancePartition, fitted to lme4's maximum likelihood); H12 window calibration (the window size whose genome-wide background lets a sweep stand out, as malariagen_data); lineages through the clusters (as slingshot getLineages), each ordered by pseudotime; pseudotime fitted to the clusters of one lineage; and cell-cell communication (CellPhoneDB's statistical method on the 1,894 literature-supported ligand-receptor pairs of Ramilowski et al. 2015). The built-in single-cell sample now has 3,000 genes, a monocyte trajectory and textbook blood signalling.
- Single-cell adds three steps, each checked against its R package: cell-cycle scoring (S and G2M scores and a phase for every cell, as Seurat CellCycleScoring, with the option to regress the scores out before the PCA), integration of samples with Harmony (how well the samples mix, by LISI, before and after), and ambient RNA estimated for every cell with decontX (on the map, by cluster and by the genes it is made of, and removed before clustering when chosen). Variants can prune linked SNPs before the PCA and the ancestry proportions, as SNPRelate snpgdsLDpruning, which keeps the same SNPs.
- Every reproducible script runs as copied, in the Python Notebook and on your own computer: it reads each file by the name the notebook and the Data Hub download give it (a VCF, a .sync, gene models and a zipped 10x folder are saved as files in the notebook's working folder), installs missing packages the first time, and fixes the random seed. Set NEXMETRY_DATA_DIR to read the files from another folder.
Working in the studio#
- The Dataset card at the top uploads your files, picks the project and the count table, loads the sample or opens a GEO study, and folds to one line once a table is read; the six steps run down the left, with the step you are on beside them. On the Data step, four numbered steps (bring your data, confirm the species, put the samples into groups, run the check) are ticked off as they are done, and the next one is marked.
- Explore, Compare and Pathways each open with cards that say what each analysis shows and are ticked once it has a result: Samples, Gene clusters, Co-expression network and Cell types; Two groups, Several comparisons, Time course, dose or 3+ groups, and Plan the next study; Pathway enrichment, Protein interactions, Chromosome map, Regulators, Drugs and, for mosquitoes, Insecticide resistance.
- Several comparisons, on the Compare step, runs many pairs of groups at once (every pair, or each group against a reference): DESeq2 fits every group once and tests each pair as a contrast, as in R. It shows the genes higher and lower in each comparison, a Venn diagram of two to four comparisons and an UpSet plot of all of them (click a region to list its genes), a heatmap of a gene family's fold changes across the comparisons, every result as one CSV, and the mean, SD and number of samples of every gene in each group.
- P-value adjustment can be Benjamini-Hochberg (the default), Benjamini-Yekutieli, Holm, Bonferroni or none; the results match R's p.adjust, and the methods, tables and scripts name the one used. Without adjustment the results are marked as exploratory.
- Groups in the analysis: with three or more groups, click a group to leave it out of every step while its samples stay in the sheet. Swap reverses the two groups of a comparison, and the time-course tab lets you choose the reference level.
- Your own annotation: a table in the project with one row per gene (its ID, a family or category column, GO IDs) gives gene sets for Pathways and for the gene-family heatmap, for any species. GO lists such as GO:0006412;GO:0005840, or P:GO:…, F:GO:… and C:GO:…, are read with their names, and the studio says when the annotation's IDs do not match the count table's.
- Problems are flagged as soon as the groups are filled in, each with how to fix it: a group of one sample, groups of two, the same group typed two ways, samples without a group and very unequal groups. An annotation table loaded as the count table is recognised and pointed to Pathways.
- Count tables can be .csv, .tsv, .txt (featureCounts and HTSeq output, with its # line), gzipped text or Excel; the separator is read from the header. Sample names such as CFP-R1, CFP-S1 and CFP-C1 are read as three groups.
- Auto-fill sample sheet finds the dataset in the project that lists your samples, or reads the groups from the sample names, and says which it used. Check the groups before you continue.
- For a trend, the number can be a numeric column of the sample sheet, the numbers in the group names (0h, 2h, 24h), or a number you type for each group.
- Every analysis that takes more than a few seconds shows a progress bar with the time left and the clock time to expect the result, estimated from earlier runs of the same size; preparing a species from Ensembl the first time says so too.
- Time course, dose or 3+ groups draws the genes that change most as log2 fold change from the reference (the first level, or the lowest value of a number) by default; switch to the log2 CPM values, or show both.
- Save and Open saved sit under the header on every step. Every comparison, network, design and interaction result is kept in Run History and reopens on its own step without running again.
- The Report step has a publication report: headline numbers, numbered tables with notes, key findings, diagnostics, assumptions, limitations and a reporting checklist, with Word and PDF documents that include the figures, and the tables as Excel or CSV.
- The R and Python scripts read the count table under the dataset's name, the name the Python Notebook gives it when you load the dataset there, so a script pasted into the notebook runs as it is. The co-expression network, designs and interactions have both: R with the reference packages, and Python with the studio's own code, checked against R, which ends by comparing its numbers with the studio's.
- Open a public study by its GEO accession (GSE…) on the Data step: NCBI's uniformly processed raw counts of a human or mouse RNA-seq series, with the samples' own descriptions as the sample sheet and the likely group column filled in for you to check.
- Cell types, on the Explore step, shows what cells make up each sample: MCP-counter scores for immune and stromal populations from their published marker genes (human and mouse), or the proportion of each cell type against a reference of your own (one column of expression per cell type, any species), compared between the groups. Both match R (MCPcounter, mMCPcounter, nnls).
- Drugs, on the Pathways step, finds compounds whose effect on expression reverses or mimics the comparison: the weighted connectivity score of LINCS against the consensus L1000 signatures of 1,170 compounds (bundled, CC BY 4.0), with a Spearman correlation over every shared gene. It matches R fgsea and cor.test. The signatures come from cancer cell lines, so a connection is a hypothesis to test.
- Single-cell RNA-seq has its own page (Genomics in the sidebar, or the switcher at the top), with a guide and an invented blood sample: a Cell Ranger .h5 file, a zipped 10x folder, an AnnData .h5ad (raw counts, with each cell's sample and condition) or a genes by cells table, up to 60,000 cells. Quality checks per cell, LogNormalize, variable genes, PCA, Leiden clusters on a UMAP, each cluster's marker genes and a dot plot of them, cell-type names for blood from canonical markers, and each sample's cluster proportions compared between conditions; then a pseudobulk table (counts summed per sample, for all cells or one cluster) opens in these steps for DESeq2 or limma, the recommended way to compare conditions. Quality metrics, normalisation, variable genes, PCA and marker tests match R.
- Variants and populations has its own page (Genomics in the sidebar, or the switcher at the top), for the VCF your pipeline made from whole-genome, pool or RNA-seq reads (GATK, bcftools, DeepVariant, freebayes), with an invented mosquito sample. The file is reported first: genome build, chromosomes, samples, variant types, filters and what can be run on it. Then variant checks (missing calls, heterozygosity and depth per sample, Ti/Tv, the allele-frequency and substitution spectra, indel lengths, SNP density), a genotype PCA, Weir & Cockerham FST between cohorts (each pair with a block-jackknife interval, and in windows along the genome), Hardy-Weinberg exact tests within each cohort, and nucleotide diversity, Watterson's theta and Tajima's D per cohort and in windows. Cohorts are guessed from the sample names and can be changed. FST matches R hierfstat, Hardy-Weinberg matches genetics, diversity matches pegas and the PCA matches prcomp.
- Pool-seq and allele frequencies, a switch on the same page, takes a PoPoolation2 .sync, a VCF with allele depths per pool, a VarScan multi-sample table or a plain table of allele frequencies, with an invented insecticide-survivor sample. Each SNP is tested between two pools (Fisher's exact test), across replicate pairs (Cochran-Mantel-Haenszel, as PoPoolation2) or on replicate frequencies (Welch's t-test), Benjamini-Hochberg adjusted, and shown as a Manhattan plot, a QQ plot with the genomic inflation lambda, the top SNPs' frequencies per pool and their replicate points. PoPoolation window outputs (.fst, .fet, .pi, .theta, .D) are drawn as computed. The tests match R fisher.test, mantelhaen.test and t.test.
- For a VCF annotated by SnpEff or VEP, the page reads each variant's most severe consequence, lists the protein-changing variants of each gene, draws a gene's changes along its protein (lollipop), and counts amino-acid changes such as kdr L995F per cohort with Wilson 95% intervals: a frequency heatmap, frequencies over time when cohorts have a year, and by site when they have coordinates. A gene copy-number table gives amplification and deletion frequencies per cohort. Gene models (GFF3 or GTF), or the annotations themselves, give a gene track under the scans and the genes in the most differentiated regions; a genome overview stacks SNP density, FST, Tajima's D and diversity, and a region can be opened for a closer look.
- Phased genotypes add selection scans (H12 and H2/H1 in windows, and XP-EHH between two cohorts, as rehh), haplotype clusters marked with a chosen SNP's allele, and a minimum spanning haplotype network (as pegas::msn); G123 scans unphased genotypes. Every VCF also gives a neighbour-joining tree of the samples (as ape::nj), runs of homozygosity with FROH per sample, ancestry-informative marker genotypes from a supplied list, and genotype to phenotype from a bioassay table: the odds ratio per ALT copy, survival per genotype, two markers together and the trend over generations (as glm, fisher.test and prop.trend.test). A surveillance report (HTML) gathers the data, methods, every result run and the limitations. A one-click sample loads a phased, annotated VCF with its bioassay, copy-number, gene-model and marker tables.
- GWAS summary statistics, the third switch on the Variants and populations page, reads a GWAS Catalog GWAS-SSF file or the output of PLINK, REGENIE, SAIGE, BOLT-LMM, GCTA or METAL (column names recognised, beta from an odds ratio, p-values checked against beta / SE, every row left out counted), with an invented three-locus sample. It draws the Manhattan and QQ plots with the genomic inflation lambda, lists the lead loci by distance clumping with their odds ratios, 95% intervals and nearest genes (from uploaded gene models), and opens a regional plot coloured by LD only when an LD panel is supplied. Allele checks flag palindromic SNPs and, against a reference table, swaps and strand flips. Lambda, p-values and odds ratios match base R.
- An association scan, among the cards for markers, selection and haplotypes, tests every SNP of a VCF against a trait from a phenotype table, adjusted for the first genotype principal components and any covariates: least squares for a measured trait, and for case-control traits a score test for every SNP with the strongest refitted by logistic regression for odds ratios. It warns about related samples (KING-robust kinship), genomic inflation and a trait that follows population structure, and draws the Manhattan and QQ plots, the strongest SNPs as a forest plot and a kinship heatmap. It matches R lm, glm and anova(test = "Rao").
- Pseudotime, on the Single-cell RNA-seq page after the clusters, orders cells along a trajectory from a root cluster by diffusion pseudotime (Haghverdi et al. 2016, as scanpy's dpt), on the same filtering, PCA and clusters as the run: the UMAP coloured by pseudotime, the diffusion map to judge whether the cells form a continuum, the mean pseudotime of each cluster, and the genes that rise or fall along it (Spearman, Benjamini-Hochberg). It matches the same diffusion map written out in base R and recovers the known order of simulated cells.
- Mosquitoes have their own gene sets: Anopheles gambiae, An. coluzzii, An. arabiensis, An. funestus, Aedes aegypti, Ae. albopictus and Culex quinquefasciatus (VectorBase gene IDs) get Gene Ontology from the VectorBase gene models and the insecticide-resistance gene families (cytochrome P450s, glutathione S-transferases, carboxylesterases, ABC transporters, UDP-glucuronosyltransferases and the target sites), and An. gambiae, An. funestus and Ae. aegypti also protein interactions from STRING. Pathways adds an Insecticide resistance tab for mosquitoes: CYP6P3, CYP6M2, CYP6P9a/b, CYP9K1, GSTE2, CYP4G16/17 and the target-site genes para, Ace1 and Rdl with their change in the comparison (target-site resistance comes from mutations that expression does not show). Reads of An. coluzzii or An. arabiensis mapped to the An. gambiae PEST reference (AGAP IDs) use the An. gambiae sets.
- Rat, zebrafish, pig, cow, chicken, dog, fruit fly, worm (C. elegans) and yeast are analysed through their one-to-one human orthologs (NCBI Gene for the vertebrates, the Alliance of Genome Resources for the others) for pathways, regulators and protein interactions; every result says how many genes had one.
- Regulators, on the Pathways step, estimates what drives the change: transcription-factor activity from CollecTRI and the activity of 14 signalling pathways from PROGENy, with decoupleR's univariate linear model on every gene's test statistic. Both networks are bundled, so nothing leaves the server.
- Time course, dose or 3+ groups also takes two factors at once: an interaction design asks whether the difference between the groups depends on a second factor, with limma's moderated F test.
- Plan the next study, on the Compare step, works out how many samples per group a new study needs from this pilot's own genes: each gene's mean count and DESeq2 dispersion, the fold change to detect, the false discovery rate, the share of genes that change, and deeper sequencing if you choose. The Power studio has the same planner with typical values.
- Download the whole analysis, on the Report step, gives one package with every step run on the page: analysis.py runs the studio's own code and reproduces every number (exactly on the computer that ran the page; DESeq2's fitted numbers differ in the last digits from one computer to another, with the same genes, calls and counts), with the package versions the page used in requirements.txt; analysis.R runs the R packages the studio is checked against (DESeq2, edgeR, limma, WGCNA, fgsea, decoupleR) on the same inputs. Both draw every figure in the page's colours, print every table and end by checking each number against the page. Show the whole code, beside the download, shows both scripts on the page to read, copy or download, with the README and requirements.txt. The count table, sample sheet, settings and gene sets are inside, so it runs without the internet.
- The Publication report, and its Word and PDF, covers every step run: the network, designs, cell types, chromosome map, interactions, regulators, drugs and the plan for the next study each add their methods, references and a table.
- When every batch holds a single group, the batch cannot be separated from the group: the comparison runs without it and says so, in the result and in the methods.
- A Back and Next bar stays at the bottom of every step, and a progress bar shows how far a run has got.
- The publication report carries the methods paragraph and its references under its banner, beside the downloads and a button that copies them.
- A Getting started guide at the top of the studio walks through the six steps. In Simple view the studio's guide has a link that loads the sample.
The edgeR, limma (voom, trend, treat, moderated F) and plotMDS steps match R to about 1e-9, and gene set enrichment matches fgsea: enrichment scores and leading genes exactly, normalised scores and p-values to within permutation error. The co-expression network matches WGCNA step by step, module assignments exactly; SVA finds the same number of surrogate variables as R and the same variables (correlation above 0.9999); goseq's test is exact given its length weights. DESeq2 runs in pydeseq2 and matches R DESeq2 to the tolerances published in the validation pack; rlog follows DESeq2 step by step. Interaction data are STRING v12 (CC BY 4.0) and pathway diagrams are Reactome's (CC BY 4.0), both credited on the figures; only a pathway's public ID is sent to Reactome, never your data. Analysis from raw reads (alignment and feature counting) is planned for a later release.
Transcription-factor and pathway activity match R decoupleR to about 1e-9, interaction designs match limma, and sample-size planning matches R RNASeqPower and ssize.fdr.
Have a question these docs don’t answer? Email support@nexmetry.org and we’ll add a guide.