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
@amenehhashemzehi.bsky.socialNov 22, 2026, 10:49 AM

🔬 A PCA outlier isn't automatically a technical outlier.

In my melanoma cohort, I compared PCA, Pearson correlation, and Euclidean distance to examine the same flagged samples from different perspectives.

Details in image ALTs.

#PCA #DataQC #Bioinformatics #Transcriptomics

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 #ComputationalOncologyHeatmap titled “Cohort B | Sample-to-sample Pearson correlation.”

The figure displays pairwise Pearson correlations between expression profiles in a representative melanoma microarray cohort.

The color scale ranges approximately from 0.20 to 1.00, with yellow representing stronger positive correlations and darker blue or purple representing weaker correlations.

Hierarchical clustering dendrograms appear above and beside the matrix. Orange annotation bars represent metastatic samples, while blue bars represent primary samples.

The bright diagonal indicates perfect self-correlation.

This visualization examines similarity in overall gene-expression patterns rather than distances along the first two principal components.

Samples with unusual PCA coordinates may still share substantial expression-pattern similarity with other samples.

The heatmap provides complementary evidence for investigating sample structure and potential outliers, without automatically identifying technical failures.Heatmap titled “Cohort B | Sample-to-sample Euclidean distance.”

The figure shows pairwise Euclidean distances between gene-expression profiles in the same melanoma microarray cohort.

Hierarchical clustering uses Ward.D2, and the heatmap is displayed without additional heatmap scaling.

The color scale ranges approximately from 0 to 250. Dark purple represents smaller distances, while green and yellow indicate larger differences between samples.

The diagonal contains zero distances because each sample is compared with itself.

Primary samples are identified in blue and metastatic samples in orange along the annotation bars.

Unlike Pearson correlation, Euclidean distance is sensitive to the magnitude of expression differences between samples.

The figure provides another perspective on the sample relationships observed in PCA and Pearson correlation analysis.

Together, these complementary metrics help evaluate whether a flagged sample warrants additional investigation before an exclusion decision is made.
@amenehhashemzehi.bsky.socialNov 22, 2026, 10:40 AM

🔬 An unusual expression profile isn't automatically a failed sample.

For melanoma QC, I checked density, median expression, missingness, library size, and detection rates. Isolated warnings triggered REVIEW—not removal.

More in image ALT.

#ExpressionQC #DataQC #Bioinformatics #Transcriptomics

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
@amenehhashemzehi.bsky.socialNov 21, 2026, 8:33 AM

🧬 Clinical data ≠ survival-ready data.

In my melanoma project, I assessed vital status and follow-up fields before defining an endpoint. Time origin, event/censoring rules, and missingness must align before survival modeling.

More in image ALT.

#SurvivalAnalysis #DataQC #CancerBioinformatics

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
@amenehhashemzehi.bsky.socialNov 21, 2026, 8:31 AM

🧬 File ≠ sample ≠ patient.

My TCGA-SKCM clinical table had 5,207 rows, but only 470 unique cases. Biospecimen data contained 1,384 distinct sample records. Repeated IDs may reflect valid relationships—not duplicate errors.

More in image ALT.

#TCGA #GDC #MultiOmics #DataQC #Bioinformatics

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