Grilled Cheese

ExploreLog inSign up
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-12-03 22:42:33 EST

PhotosVideosAllPeople
LatestRanked
Infographic titled “Single-Cell Data Acquisition: Preserve the Biological Hierarchy.” It depicts scRNA-seq and scATAC-seq input files, cell barcodes mapped to samples and tumor/patient IDs, and sample-level modality pairing: five samples with both modalities and one with scATAC-seq only. It also contrasts bulk and single-cell expression profiles.

Single-Cell Data Acquisition: Preserve the Biological Hierarchy

In single-cell studies, a count matrix tells us what was measured, but not necessarily where each observation originated biologically.

The datasets in my melanoma project had different file structures. Some provided scRNA-seq count matrices, features, and barcodes; multimodal datasets also included scATAC-seq peak-level data.

My central acquisition question was not only which files existed, but whether each cell or barcode could be traced to its biological sample.

Traceability differed among cohorts. In one, 4,645 cells mapped to 19 Tumor IDs with no missing tumor assignments. In another, all 7,186 cells had Sample IDs but no separate Patient ID in the released annotation. I did not infer patient identity from sample IDs; I preserved only mappings supported by the data.

Multimodal datasets presented a separate challenge: scRNA-seq and scATAC-seq data within the same study are not necessarily paired by sample. In one cohort, five biological samples had both modalities, while another had scATAC-seq only. Pairing had to rely on sample identity, not study membership.

The aim was a defensible chain of provenance:
Cell/barcode → sample → tumor or patient (when available) → modality.

For me, single-cell acquisition means preserving this hierarchy before attempting downstream integration.

#SingleCell #scRNAseq #scATACseq #SingleCellGenomics #MetadataEngineering #MultiOmics #CancerGenomics #Bioinformatics #ComputationalOncology
Infographic titled “File ≠ Sample ≠ Patient.” A GDC-style table illustrates file UUIDs, file IDs, molecular data types, sample IDs, tumor status, and platform metadata. A diagram shows how one case can have multiple samples and files. The bottom summarizes 1,384 samples and 470 cases.

File ≠ Sample ≠ Patient: Why Counting Rows Can Give the Wrong Cohort Size

During a TCGA-SKCM audit, my clinical.tsv file had 5,207 rows—but only 470 unique cases. Repeated clinical rows may represent separate diagnosis or treatment records for the same patient. Row count is not patient count.

Molecular data have another layer of complexity. A File UUID identifies a molecular file; a Sample ID identifies a biospecimen; and a Case ID identifies a patient/case. I retained human-readable cases.submitter_id and samples.submitter_id identifiers alongside the GDC UUIDs for traceability.

Repeated Case IDs are not necessarily errors. One patient may contribute several biospecimens, and one sample may have files from different modalities, including RNA-seq, DNA methylation, mutation, or CNV.

In my biospecimen records, 1,384 distinct sample records belonged to 470 cases. These were distinct samples—not repeated Sample IDs. Across the clinical and biospecimen records, all 470 Case UUIDs mapped unambiguously to patient IDs.

The QC question was therefore not simply “Which values repeat?” but “At what level do they repeat?”

Two identical rows may be true duplicates. Two different files from one sample, two samples from one patient, or two clinical records from one case are valid relationships requiring different treatment.

I reconciled File IDs, Sample IDs, and Case IDs to distinguish duplication errors from expected one-to-many links.

In multi-omics research, files, rows, samples, and patients are different quantities. Patient-level cohort size must be calculated using the correct identifiers.

#TCGA #GDC #MultiOmics #DataQC #Bioinformatics #DataCuration
Infographic titled “TCGA/GDC Multi-Omics Acquisition: One Cohort, Multiple Molecular Layers.” It shows TCGA-SKCM in the GDC portal and separate acquisition paths for RNA-seq, DNA methylation, somatic mutations, CNV, and clinical/biospecimen data. Example filters and file packages illustrate the distinct workflows.

TCGA/GDC Multi-Omics Acquisition: One Cohort, Multiple Molecular Layers

Selecting a cancer cohort in GDC does not mean selecting one dataset or using a single download procedure.

For my project, I acquired RNA-seq, DNA methylation, somatic mutation, and copy number variation (CNV) data, alongside clinical and biospecimen records. Each molecular layer required its own selection logic and file structure.

For methylation, I selected Methylation Array → Methylation Beta Value, using SeSAMe beta-value files. For somatic mutation, the path involved WXS → Simple Nucleotide Variation → Masked Somatic Mutation → MAF. For CNV, I acquired both Gene Level Copy Number and Allele-specific Copy Number Segment data.

For every modality, I checked the Data Category, Experimental Strategy, Data Type, Workflow Type, and Data Format against downstream needs. I also retained the corresponding manifests, sample sheets, and repository metadata. The methylation selection, for example, contained 475 beta-value files, with its acquisition records documented separately.

This matters because “TCGA methylation” or “TCGA mutation” does not specify which representation of that molecular layer was obtained.

My goal at this stage was acquisition and traceability—not integration. Each modality needed a clear record of how it was selected, what files were downloaded, and what biological information they represent.

One cohort does not necessarily mean one dataset: different molecular layers require distinct, documented acquisition paths.

#TCGA #GDC #MultiOmics #CancerGenomics #RNASeq #DNAMethylation #SomaticMutation #CNV #ComputationalOncology
Infographic titled “From a GEO Accession to a Complete Data Package.” It shows four steps: locating a GEO Series; collecting available raw files, Series Matrix, GSM metadata, GPL annotations, and supplements; reconciling reported and available samples (84 reported, 79 with expression data, 5 with clinical information only); and documenting file provenance.

GEO Data Acquisition: From an Accession to a Complete Data Package

Selecting a GEO accession ends the search stage, but the data are not necessarily ready for analysis.

In one cohort I examined, the paper reported 84 eligible samples. After matching the public files to the study metadata, I found expression data for only 79. The remaining five had clinical information but no released expression data. For expression analysis, the available sample count was therefore 79, not 84.

This distinction is why GEO acquisition is more than clicking Download.

A GEO Series may contain raw files (such as CEL files), processed expression data in a Series Matrix, supplementary materials, platform annotations (GPL), and sample metadata (GSM). These components serve different purposes and cannot simply be treated as interchangeable.

I approached acquisition as building a traceable data package. For each cohort, I checked which files were expected, which were available, how they mapped to sample IDs, how raw and processed data covered the reported cohort, and where each file originated.

The 84-versus-79 example showed why the number reported in a paper should not be assumed to equal the number of samples usable in a particular analysis.

My goal was not just to download files, but to preserve their links to the biological samples, data types, and source records so later analytical decisions could be checked.

A GEO accession is the starting point. A reconciled, traceable data package is the useful output.

#GEO #DataAcquisition #Microarray #GeneExpression #Bioinformatics #DataProvenance
Photo, no description
Photo, no description
Photo, no description
Infographic titled “GEO Dataset Screening: What Comparison Does This Cohort Actually Support?” It shows GEO search, deduplication to 231 unique Series, metadata assessment, an example with 5 metastatic samples below the ≥10-per-group threshold, and 3 datasets advancing.

GEO Dataset Screening: What Comparison Does This Cohort Actually Support?

While searching GEO for part of my melanoma project, I merged search results and removed duplicates, leaving 231 unique GEO Series for screening. Only 3 datasets proceeded to the next stage.

The reduction was not simply about eliminating irrelevant datasets. One candidate looked highly relevant: human melanoma data containing both primary and metastatic samples. But reviewing cohort composition revealed only 5 biological metastatic samples.

For this analysis, the prespecified minimum was 10 biological samples in each of the primary and metastatic groups. The dataset therefore did not qualify for its intended primary analytical role despite being relevant to the research topic.

This reinforced a key distinction: total sample size alone does not tell us whether a cohort supports the comparison we need. The distribution of biological samples across the actual comparison groups matters.

A dataset may match the disease, tissue, and data type but have a group structure unsuitable for the proposed analysis. Exclusion does not imply poor data quality; the study may have been designed to answer a different question.

I screened candidates by cohort composition, group definitions, biological sample counts, and study design, recording the Include/Exclude rationale.

The key question was not “Is this dataset about melanoma?” but “What biological comparison does this cohort actually support?”

The answer at cohort selection shapes the analyses that follow.

#GEO #NCBI #DatasetScreening #CohortSelection #ResearchDesign #Bioinformatics #CancerResearch
Infographic titled “Standardizing the R environment with renv.” An RStudio screenshot shows R 4.6.0, renv::restore() reporting synchronization with the lockfile, renv::status() reporting no issues, and the project files renv.lock, DESCRIPTION, and .Rprofile.

When the Code Was Not the Problem

I once encountered R code that ran on someone else’s system but failed on my laptop. I first suspected the script, then the data. A closer look pointed instead to differences in the execution environment: the same package, but a different version, could change the outcome.

That experience made me ask: if an analysis runs only on one laptop, how can others reproduce it?

In my computational oncology project, I worked to standardize the environment before the main analyses. I fixed the project’s R version, created a project-specific environment with renv, recorded package dependencies in a lockfile, established a process for controlled updates, and documented setup instructions for collaborators.

Learning renv was itself a challenge: creating an environment, restoring dependencies, and checking whether the project library remained consistent with recorded package versions. The screenshot shows a successful consistency check on my system—not proof that the workflow runs on every platform.

Importantly, renv manages R package dependencies; the required R installation and system-level dependencies also matter.

My main lesson: reproducibility means more than sharing code. Others need to know the R version, required packages, their versions, and the conditions under which the analysis ran.

Now I ask not only “Does the code run?” but “Can this workflow be recreated in a documented environment?”

What package-version or environment problem taught you the most?

#ReproducibleResearch #Bioinformatics #ComputationalOncology #RStats #OpenScience
Screenshot of a reusable Markdown README template for bioinformatics, open in a text editor. Visible sections include Overview, Scientific Rationale, How to Run, and Workflow, with prompts for configuration, input selection, data preparation, and QC. The text contains placeholders, not results from an analysis.

README Is Not a List of Files; It Is a Story of Decisions

In many computational projects, the README is the first document someone reads. For a research task, I see it as a concise, standardized report: what question was addressed, which data were used, what was done, which outputs were generated, and how the findings and limitations should be understood.

I learned that understanding an analysis does not always require running every script or inspecting every output. Often, the essential questions are simpler: Why was the task needed? What methods were used? What was produced? What do the results mean?

A clear README makes those answers easier to find. This matters in bioinformatics, where workflows can span many datasets, methods, scripts, and intermediate files.

I therefore designed a reusable README template for bioinformatics projects. It gives task reports a consistent structure while leaving room for the scientific decisions and details specific to each analysis.

The template is a reporting aid, not a substitute for scientific judgment or a guarantee of reproducibility. Its purpose is to make the work easier for collaborators—and my future self—to understand and check.

What information do you always include when documenting an analysis?

#Bioinformatics #ReproducibleResearch #ComputationalBiology #ResearchWorkflow #OpenScience #CancerBioinformatics
Screenshot of RStudio showing my reusable R bioinformatics script template. The editor displays configurable fields for project information, tasks, input/output files, author, date, and R version. The image illustrates the template structure, not completed analytical results.

From Scattered Scripts to a Standardized Template

In bioinformatics, each task requires its own scientific approach. However, many practical components recur across analyses: managing inputs and outputs, recording the execution environment, exporting figures, and documenting what happened during execution.

Rewriting these components from scratch wastes time and produces inconsistent documentation, making research workflows harder to reproduce.

To address this, I developed a reusable R template covering:

• Automatic recording of session information and execution logs.
• Dependency management with renv.
• Standardized TIFF and PNG exports with configurable settings.
• Flexible input/output paths for desktop and server execution.
• Validation of critical paths before saving shared outputs.
• Adaptable processing branches for common data families.

An important distinction remains: analytical methods, parameters, and quality control procedures must be selected according to the research question and dataset.

A template cannot replace scientific judgment. It only reduces repetitive setup and helps standardize documentation.

This template is an adaptable starting point, not a universally validated analytical solution. Some processing branches have not yet been tested on real datasets.

I am sharing it to exchange ideas with other researchers and learn which challenges emerge in practical workflows.

If you work with R or bioinformatics, which components do you repeatedly rewrite? What would you standardize first?

#RStats #Bioinformatics #Bioconductor #ReproducibleResearch #ComputationalBiology #ResearchWorkflow #OpenScience #CancerBioinformatics
Photo, no description
Photo, no description
Photo, no description
Photo, no description
Photo, no description
Photo, no description
Photo, no description
Photo, no description
Photo, no description
Load more