baSeq
baSeq docs › Uploading your data

Uploading your data

What to bring and how upload works. baSeq accepts the common single-cell, bulk RNA-seq, fitness and CRISPR screen, TCR and BCR repertoire and proteomics formats and figures out your sample layout for you.

The upload flow

Inside a session, click Upload in the top bar and choose where the data comes from:

  1. Upload Files

    Select your own data files. Large files upload safely in chunks, so big single-cell datasets are fine.

  2. Import from GEO

    In a single-cell, CITE-seq, scTCR-seq, scBCR-seq, Smart-seq2, bulk RNA-seq, TCR or BCR repertoire, fitness or CRISPR screen, ATAC-seq or spatial analysis, type a GEO series or sample number (GSE or GSM) and press Look up. The samples appear in the panel, ticked, each with its size and a condition taken from GEO; Condition from picks another characteristic. Untick the samples you do not need and press Import. baSeq downloads the files from NCBI on its own servers, so nothing passes through your computer, and you name the samples while it does. A fitness screen is also offered the samples' .wig insertion counts, an ATAC-seq analysis their peak, fragment and BAM files, a Smart-seq2 analysis a plate-based series' table of every cell in place of each cell's own file, a CITE-seq analysis the antibody counts without their normalised values, and a CRISPR screen the guide count tables without MAGeCK's results beside them, each sample of a shared table on its own row. Proteomics data is shared through PRIDE (ProteomeXchange) rather than GEO: download the project's DIA-NN matrix and SDRF there and upload them. See Import from GEO.

  3. Browse Sample Datasets

    Pick a ready-made, curated public dataset instead of uploading. The table lists each dataset's name, GEO ID, tissue, organism, conditions, sample count, and (for single-cell) cell count. This is the fastest way to try baSeq or to follow along with a guide.

  4. Your Datasets

    Start from files you or your lab uploaded before, or that a facility delivered, without uploading them again. See Your data & the facility inbox. If your account has them, files in your own Google Drive, Dropbox, OneDrive or SharePoint can be imported on the Data page and then picked here: see Import from Google Drive, Dropbox, OneDrive or SharePoint.

The Upload Data dialog with Upload Files, Browse Sample Datasets and Your Datasets
The Upload dialog. The line at the bottom makes a delivery link for your sequencing facility.

After the files load, baSeq guesses your sample metadata, you choose the organism and review the metadata, and then you are ready to run steps. When something in the files needs your attention, a card titled How baSeq read your data comes first: it says what was found (for example a column that was left out, or a table that holds two organisms) and you continue with OK.

Accepted file formats

Single-cell RNA-seq

  • Cell Ranger output: the filtered_feature_bc_matrix folder (matrix, barcodes and features files) or its .h5 file. The same three files from STARsolo, kallisto | bustools, alevin-fry and Parse Biosciences load too, compressed or not, whatever their names.
  • AnnData (.h5ad), loom and MuData (.h5mu) files.
  • R objects: Seurat or SingleCellExperiment objects saved as .rds or .RData, or a plain count matrix saved from R.
  • Count tables (.csv, .tsv, .txt, gzipped or not), with genes as rows or as columns, as GEO serves them or as BD Rhapsody writes them.
  • Any of these in a .zip or .tar.gz, including a GEO _RAW.tar. Files GEO compressed once more, such as .h5ad.gz, .loom.gz or .rds.gz, load as they are.
  • A table of the cells sent with the counts (a column of cell barcodes, then columns such as sample, origin or cell type) adds its columns to those cells.

The same cells are read once. When a series holds them twice, for example raw counts and a normalised copy, or a Cell Ranger .h5 file beside its matrix folder, baSeq keeps one, raw counts first, and the card titled How baSeq read your data says what it left out.

Have FASTQ files? They are counted first, in FASTQ upload, wherever you drop them: see FASTQ upload. A public study's raw reads can be imported there from ENA, with no upload.

baSeq takes the raw counts wherever the file keeps them and keeps gene expression only. An unfiltered matrix (with the empty droplets) has its cells picked out by their counts; the filtered matrix from the same run gives Cell Ranger's own call. Either way, alone or uploaded beside the filtered one, the unfiltered matrix's empty droplets (barcodes that are not cells, with 1 to 99 UMIs) are kept as the background Remove Ambient RNA takes out: on 10x's PBMC 1k they hold 40 times the cells' share of HBB, the red cells' RNA a filtered matrix alone cannot show. A matrix of two species' genes, each named with its genome (HUMAN_ and MOUSE_, or GRCh38_ and mm10___ from a two-genome reference), keeps the species most cells belong to, with its genes named without the prefix.

Several samples at once

Send all samples in one upload: select their files together, or one .zip of their folders. baSeq pairs each matrix with its barcodes and genes files by their sizes, so file names do not matter, and names each sample after its folder or the shared part of its file names. You can rename samples in the metadata step.

Bulk RNA-seq

  • Count tables as .csv, .tsv, .txt or Excel (.xlsx, its sheet of raw counts), gzipped or not (.tsv.gz, as GEO serves them), with genes as rows and samples as columns. featureCounts, HTSeq-count and STAR ReadsPerGene outputs are recognised as they are, under the tools' own names, as are salmon's quant.sf, kallisto's abundance.tsv and RSEM's genes.results, read from their estimated counts (never TPM or FPKM). Per-transcript estimates are summed per gene when the transcripts' names give their genes (GENCODE's); otherwise the samples are compared transcript by transcript, and counts per gene suit the gene-level steps better. From STAR's three columns of counts, each library's is read for the strand it shows, as baSeq's own read counting reads it (a failed library's for the strand of the others), and the upload's report says which.

You do not have to tell baSeq how the file is laid out. It automatically detects the delimiter, which column holds gene symbols, which holds a separate gene ID (such as Ensembl), and which columns are per-sample counts. Gene IDs are converted to gene symbols for you (a gene without a symbol keeps its ID), and counts are rounded to whole numbers. If you upload several files, their samples are combined and kept distinct by prefixing the file name; a tool's file of one sample (HTSeq, STAR, salmon) is that sample, named after the file or the folder it came in. A table of differential expression results with the samples' counts beside them is read for its counts. Files in the upload that hold no counts, such as a README, featureCounts' .summary, a sample sheet or results without counts, are set aside, and the upload's report names each with why.

Single-cell vs bulk inputs

Bulk sessions accept count tables only (.csv / .tsv / .txt / .xlsx, also gzipped); they do not take .h5ad, .rds, or 10x files. Single-cell sessions take the single-cell formats above.

Fitness and CRISPR screens, TCR and BCR repertoires and proteomics

  • Fitness Screen: a .wig file per sample, one table of insertion sites with a column per sample, or a table already counted per gene, optionally with the genome's GFF3 or GenBank file. See Fitness screens.
  • CRISPR Screen: guide counts, as MAGeCK count writes them (sgRNA, Gene and a column per sample), one table per sample, or counts naming only the guides with the library file beside them; CSV, TSV, TXT or Excel. See CRISPR screens.
  • TCR Repertoire: a clonotype table per sample from AIRR, MiXCR, Adaptive ImmunoSEQ, TRUST4, VDJtools or immunarch, or 10x Genomics contig annotations. See TCR repertoires.
  • BCR Repertoire: a sequence table per sample: AIRR rearrangements (IgBLAST, Change-O, 10x Genomics airr_rearrangement.tsv), 10x Genomics contig annotations, MiXCR clones, or ImmunoSEQ, TRUST4, VDJtools or immunarch exports. See BCR repertoires.
  • scTCR-seq: each sample's gene expression (anything the single-cell upload reads) together with the same cells' T-cell receptors: 10x Genomics filtered_contig_annotations.csv or airr_rearrangement.tsv, an AIRR table with a cell_id column, TRUST4, BD Rhapsody, Parse Evercode, WAT3R or MiXCR output, Scirpy's table of each cell's chains, or a table of each cell's CDR3s (cdr3s_aa), as GEO series often have them; such a table's other columns (patient, treatment) are added to the cells. The two are paired by the barcodes they share. A V(D)J sample GEO lists apart from its gene expression goes with it: keep both ticked when you import them. See scTCR-seq.
  • scBCR-seq: each sample's gene expression (anything the single-cell upload reads) together with the same cells' receptor: 10x Genomics filtered_contig_annotations.csv or airr_rearrangement.tsv, or any AIRR rearrangement table with a cell_id column. The two are paired by the barcodes they share. See scBCR-seq.
  • CITE-seq: Cell Ranger feature-barcoding output with antibody capture, a MuData file, an AnnData file with proteins in obsm, a Seurat object with an ADT assay, or ADT tables beside the RNA. See CITE-seq.
  • Smart-seq2: one quantification file per cell (featureCounts, HTSeq-count, STAR, RSEM, salmon or kallisto), a featureCounts table of every BAM, a genes × cells count table, or an .h5ad, loom or Seurat file, with a table of the cells (plate, well, sample, condition) if you have one. See Smart-seq2.
  • ATAC-seq: featureCounts' consensus-peak table from nf-core/atacseq (with its .summary) or any table of reads per peak, or each sample's fragments.tsv.gz, BEDPE, tagAlign or BAM file, with its narrowPeak or without one (its peaks are then called). See ATAC-seq.
  • scATAC-seq: Cell Ranger ATAC's output per sample: fragments.tsv.gz with singlecell.csv and peaks.bed, or the peak matrix (filtered_peak_bc_matrix.h5 or its folder), an .h5ad of cells by peaks, or a table of counts per peak and cell as text (sci-ATAC-seq). See scATAC-seq.
  • Multiome (RNA + ATAC): Cell Ranger ARC's output per sample: filtered_feature_bc_matrix.h5 with atac_fragments.tsv.gz, per_barcode_metrics.csv and atac_peaks.bed, or a MuData .h5mu, or an .h5ad of both modalities. See Multiome.
  • Spatial Transcriptomics: Space Ranger, Xenium, MERSCOPE, CosMx, Slide-seq or Stereo-seq output, or an .h5ad with spatial coordinates, with an annotated single-cell .h5ad if you want cell types mapped. See Spatial transcriptomics.
  • Bulk Proteomics: a DIA-NN protein-group matrix together with an SDRF sample sheet. See Proteomics.

Sample metadata: reviewed, not authored

You do not need a separate sample sheet. After upload, baSeq proposes metadata for each sample and you correct it in an editable table:

  • Single-cell: Sample Name, Batch, Condition, and Other notes per file.
  • Bulk: one row per sample with a condition column.

Both tables end in a + for more columns. It offers the kinds of column baSeq checks (Tissue, Cell type, Cell line, Sex, Disease, Development stage and Treatment) and Other, which asks for a name. A checked column names its ontology beside its name, such as Uberon for Tissue. Under a cell, a synonym offers its term (→ male), an ambiguous value offers each term it could be, and a value that is not a term says so (Not in Uberon). Nothing changes until you click, and nothing stops you from saving. A dataset imported from GEO brings each sample's characteristics as columns.

When the genes look like another organism than the one chosen, a line says so, for example The genes look like mouse genes (Actb, Gapdh), not Human. The upload waits up to 3 hours for you to save the metadata. If you close the page or open another session meanwhile, the metadata step comes back the next time you open this one.

The bulk metadata editor with six samples, conditions WT and agr_KO, and the organism Other bacterium
The bulk metadata editor. With a bacterial organism, the button at the bottom leads to Microbial setup.
Keep labels consistent

Give samples that belong to the same condition or batch the same label. baSeq tidies casing and spelling, but consistent, meaningful labels lead to better comparisons downstream.

Choosing the organism

Select the species that matches your data. The organism sets the gene lists used for quality control (mitochondrial, ribosomal, and other markers) and the references used for enrichment. In the organism dropdown these are grouped under Eukaryotes and Bacteria. Supported organisms:

OrganismLatin nameNotes
Eukaryotes
HumanHomo sapiensPre-selected for a bulk table unless it is keyed by bacterial locus tags, names a bacterial genome, or has another organism's genes (Ensembl ids, or symbols written as mouse genes are), which is then pre-selected instead.
MouseMus musculus
ZebrafishDanio rerio
CattleBos taurus
SalmonSalmo salar
Bacteria (bulk RNA-seq; each one enables the Microbial setup page and bacteria-only steps)
Acinetobacter baumanniiA. baumannii
Bacillus subtilisB. subtilis
Escherichia coliE. coli
Klebsiella pneumoniaeK. pneumoniae
Listeria monocytogenesL. monocytogenes
Mycobacterium tuberculosisM. tuberculosis
Pseudomonas aeruginosaP. aeruginosa
Salmonella entericaS. enterica
Staphylococcus aureusS. aureus
Streptococcus pneumoniaeS. pneumoniae
Other bacteriumany other speciesTakes its species and strain from the genome you add in Microbial setup.

You can also set an optional random seed (default 42) for reproducible results.

Bacteria (prokaryote) bulk RNA-seq

When you choose a bacterial organism for a bulk session, the metadata editor gains a second page called Microbial setup. After you review your samples on the first page, click Next: Microbial setup to open it. For bacterial sessions, Save Metadata moves to this second page, so you pass through Microbial setup before saving. Bacterial count matrices are usually keyed by locus tags, so this page maps those locus tags to gene names. There are two ways to do it (the Bacteria guide has the details and what the genome adds to every result):

  1. Reference genome (recommended)

    Click Detect and baSeq searches NCBI for the assembly your reads were counted against, using clues captured at upload such as the featureCounts header or the locus-tag prefix in your data. It downloads the candidate annotation and shows the assembly accession, organism, strain, assembly name, and the percentage of your genes it maps. Review it and click Use this genome to apply. Nothing is applied until you confirm.

  2. Upload manually

    Under or upload manually, choose a Gene annotation file (GFF3 .gff / .gff3, GenBank .gb / .gbk / .gbff, gzipped or not, or a .tsv, .csv, or .txt table) that maps locus tags such as lmo0001 or SAOUHSC_00001 to gene names, and optionally a Custom gene sets file (.gmt) for GSEA.

Set up genes before enrichment

Without a reference genome or uploaded annotation, GO and GSEA enrichment can come back empty, because your data is keyed by locus tags that do not match gene-symbol references. Functional Categories (COG) needs the genome's proteins: press Detect in Microbial setup to find the matching NCBI assembly (set automatically when your featureCounts file names it), upload the genome's GenBank file, or upload an annotation that names its strain.

A host and a bacterium in one table

A bulk count table that holds a host's genes and a bacterium's (dual RNA-seq, for example from infected cells) is split on upload: this analysis keeps the host's genes, and a second, linked analysis in the same project gets the bacterium's. See Host and bacterium (dual RNA-seq).

baSeq ApS · CVR 44568691 · Vermlandsgade 51, 2300 Copenhagen, Denmark · [email protected]

For research use only. Not for diagnostic or clinical decisions.