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
Scatter plot titled “Cohort B | PCA by sample condition.” PC1 and PC2 show the main directions of expression variation in a representative melanoma microarray cohort. Primary samples are blue and metastatic samples orange. Several distant observations are labeled “candidate” for further QC review.

PCA, Correlation, and Distance: Three Views of Sample Structure

When examining sample structure in my melanoma project, I found that what looks unusual depends on the metric used for comparison.

A sample that appeared distant in PCA did not necessarily look equally unusual in the correlation or distance heatmaps.

These visualizations measure different aspects of expression data.

PCA summarizes the main directions of variation across samples. A sample can therefore appear isolated along PC1 or PC2 without being equally different under other measures of similarity.

Pearson correlation focuses on expression-pattern similarity: whether gene expression values tend to vary together across two samples.

Euclidean distance instead measures the overall magnitude of differences between their expression profiles.

During QC, I followed the same flagged samples across these complementary visualizations to examine whether unusual patterns were supported by multiple perspectives.

An isolated point in PCA is not automatically evidence of a technical failure. Its relationship to other samples needs further examination.

My main lesson: outlier assessment is not simply about identifying the most distant point. It requires understanding which definition of similarity makes the difference visible.

#PCA #Correlation #EuclideanDistance #DataQC #Bioinformatics #ComputationalOncology
Multi-panel figure titled “Expression Quality Control” across six cohorts (A–F). Panel A shows per-sample expression density curves; panel B shows sample median-expression distributions. Panel C reports 0% maximum expression missingness across the six cohorts. Panel D shows Cohort F raw library sizes with dashed review boundaries, and panel E shows Cohort E detection P-value QC. Blue marks PASS and orange marks REVIEW; dashed lines indicate review thresholds, not automatic exclusions.

Expression QC: Why One Plot Is Not Enough

During expression quality control, I encountered samples that appeared unusual according to individual metrics. Some had lower median expression, others fell outside the typical library-size range, and a few showed lower detection rates.

But the question was not just “Which samples look different?” It was “Does this provide enough evidence to exclude them?”

To avoid drawing conclusions from a single plot, I evaluated several complementary dimensions: expression density, per-sample median expression, missingness, raw library size, and detection evidence. Each describes a different aspect of the data, and an unusual value in one metric does not necessarily establish a technical failure.

I therefore kept REVIEW separate from technical exclusion. Samples with warning signals were flagged for further assessment rather than automatically discarded. The review flags were carried forward for additional checks, where multiple sources of evidence could inform any outlier decision. Only hard technical failures were eligible for exclusion at the QC-clean handoff.

For me, the key lesson is simple: QC flags are prompts for investigation, not automatic removal rules. Retaining that distinction helps avoid unnecessary sample loss and supports transparent decisions.

#ExpressionQC #DataQC #GeneExpression #Bioinformatics #Transcriptomics #ComputationalOncology
Infographic titled “Clinical Data ≠ Survival-Ready Data: A Column Is Not Yet an Endpoint.” An illustrative patient table contrasts complete and incomplete survival records. Panels define time-to-event, event/censoring status, time origin, and consistency; compare OS, DSS, and DMFS; and outline QC checks before modeling. Table values are illustrative, not project data.

Clinical and Survival Data: A Column Is Not Yet an Endpoint

Having a vital_status column or follow-up variable does not mean clinical data are ready for survival analysis.

During clinical QC for my melanoma project, survival-related information was available, but I deliberately did not derive an endpoint at that stage. I first examined what each field represented, how many cases had usable values, and whether time and status were compatible.

A survival endpoint needs more than a time column: time-to-event and event/censoring status must be linked to a defined time origin. For example, “Dead” may identify an overall survival event, but it does not tell us when the survival clock starts. Follow-up time without clear censoring rules is also insufficient.

OS, DSS, and DMFS measure different events and cannot be treated as interchangeable. Even variables called OS may use different starting points across sources.

Missingness must be assessed jointly: a patient may have valid status without compatible time, or both fields may exist but reflect different timelines.

My question was not “Do we have survival columns?” but “Can these fields define the same endpoint with consistent event, time origin, censoring, and missing-data rules?”

Sample selection was not based on future outcome information. Specimen-selection policy and endpoint definition remained separate decisions.

Clinical information is the starting point, not the endpoint. A valid survival outcome requires explicit, auditable choices.

#SurvivalAnalysis #EndpointDefinition #DataCuration #CancerBioinformatics
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