<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Alcyone Research Craft]]></title><description><![CDATA[Publication-grade scientific figures, automated LaTeX/Word tables, and anti-hallucination AI workflows for researchers.]]></description><link>https://alcyonecraft.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Sun, 29 Nov 2026 23:15:04 GMT</lastBuildDate><atom:link href="https://alcyonecraft.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[A Zero-Upload Browser Toolkit for Academic De-AI Linting and 7 pt Journal Font Calibration]]></title><description><![CDATA[Before submitting a manuscript or peer-review rebuttal, pasting unpublished clinical cohort results into commercial "AI humanizer" websites introduces two…]]></description><link>https://alcyonecraft.hashnode.dev/a-zero-upload-browser-toolkit-for-academic-de-ai-linting-and-7-pt-journal-font-calibration</link><guid isPermaLink="true">https://alcyonecraft.hashnode.dev/a-zero-upload-browser-toolkit-for-academic-de-ai-linting-and-7-pt-journal-font-calibration</guid><category><![CDATA[Python]]></category><category><![CDATA[AI]]></category><category><![CDATA[research]]></category><category><![CDATA[Web Development]]></category><dc:creator><![CDATA[Alcyone]]></dc:creator><pubDate>Sat, 28 Nov 2026 09:42:55 GMT</pubDate><content:encoded><![CDATA[<p>Before submitting a manuscript or peer-review rebuttal, pasting unpublished clinical cohort results into commercial "AI humanizer" websites introduces two real risks: silent data leakage to external servers and subtle numeric rewrites (<code>p = 0.048</code> rounded away or <code>n = 412</code> rewritten in prose).</p>
<p>To keep unpublished text 100% on your own machine, we built a lightweight, zero-upload client-side toolkit that runs completely inside your browser (<code>https://alcyonecraft.github.io/tools.html</code>) with no accounts, no cookies, and zero network requests:</p>
<p><img src="https://raw.githubusercontent.com/alcyonecraft/publication-figure-starter/main/assets/a1_demo.gif" alt="Alcyone Matplotlib Showcase Loop" /></p>
<h2>1. De-AI Prose &amp; Placeholder Linter + Numeric Baseline Guard</h2>
<p>The first tab scans drafts locally in JavaScript for 30+ high-frequency LLM filler patterns (<em>"delve into"</em>, <em>"intricate tapestry"</em>, <em>"testament to"</em>, <em>"ever-evolving landscape"</em>, <em>"paving the way"</em>, <em>"crucial role"</em>) plus unedited placeholders (<code>TODO</code>, <code>TBD</code>, <code>[insert ...]</code>).</p>
<p>Crucially, clicking <strong>Save Numeric Baseline</strong> snapshots every numeric token (<code>\d+(?:\.\d+)?%?</code>) before you revise prose—then alerts immediately if an edit drops or alters a single number.</p>
<p><img src="https://raw.githubusercontent.com/alcyonecraft/academic-agent-starter/main/assets/a3_demo.gif" alt="Academic Agent CLI Demo" /></p>
<h2>2. Journal Print-Width Font Calibrator (<code>&gt;= 7 pt</code>)</h2>
<p>Select your target layout (<code>A4 6.50 in</code>, <code>Nature Double 7.20 in</code>, <code>IEEE/CVPR Double 7.16 in</code>, or <code>Single Column 3.50 in</code>) and enter your figure canvas width (e.g., <code>9.6 in</code>). The calibrator computes the exact scale multiplier (<code>6.5 / 9.6 = 0.677x</code>) and generates copy-ready <strong>Python (<code>matplotlib.rcParams</code> with <code>pdf.fonttype = 42</code>)</strong> and <strong>R (<code>ggplot2</code> <code>theme_publication</code>)</strong> snippets guaranteed to stay above <code>7 pt</code> on paper.</p>
<h2>3. Dual-Tone Hex Swatches &amp; OT1-Safe LaTeX Cell Escaper</h2>
<p>Click any Soft-Academic fill/stroke pair to copy hex colors, or sanitize strings like <code>Proposed Model (&lt; 5M params) · Age &gt;= 65 · P &lt; 0.001</code> into OT1-safe LaTeX (<code>$&lt;$</code>, <code>$\ge$</code>, <code>\_</code>, <code>\&amp;</code>) so classic LaTeX never prints upside-down <code>!</code> or <code>?</code> symbols.</p>
<hr />
<h3>Try It Free + Explore Full Open-Source &amp; Production Kits</h3>
<ul>
<li><strong>Open Free Browser Tools (Zero Upload)</strong>: <a href="https://alcyonecraft.github.io/tools.html?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=browser_tools_launch">https://alcyonecraft.github.io/tools.html?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=browser_tools_launch</a></li>
<li><strong>7 Free MIT Starter Repositories on GitHub</strong>: <a href="https://github.com/alcyonecraft">https://github.com/alcyonecraft</a></li>
<li><strong>7-in-1 Complete Researcher Suite (<code>DEVTO20</code> for extra 20% off)</strong>: <a href="https://alcyonecraft.gumroad.com/l/complete-researcher-suite?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=browser_tools_launch">https://alcyonecraft.gumroad.com/l/complete-researcher-suite?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=browser_tools_launch</a></li>
</ul>
]]></content:encoded></item><item><title><![CDATA[Reproducible PRISMA 2020 Deduplication and RoB 2 Visuals Without Manual Spreadsheet Counting]]></title><description><![CDATA[Systematic reviews and meta-analyses fail reproducibility audits most often at step one—study identification and deduplication. Teams export .ris and .bib…]]></description><link>https://alcyonecraft.hashnode.dev/reproducible-prisma-2020-deduplication-and-rob-2-visuals-without-manual-spreadsheet-counting</link><guid isPermaLink="true">https://alcyonecraft.hashnode.dev/reproducible-prisma-2020-deduplication-and-rob-2-visuals-without-manual-spreadsheet-counting</guid><category><![CDATA[Python]]></category><category><![CDATA[bioinformatics]]></category><category><![CDATA[research]]></category><category><![CDATA[Data Science]]></category><dc:creator><![CDATA[Alcyone]]></dc:creator><pubDate>Sat, 28 Nov 2026 09:42:08 GMT</pubDate><content:encoded><![CDATA[<p>Systematic reviews and meta-analyses fail reproducibility audits most often at step one—<strong>study identification and deduplication</strong>. Teams export <code>.ris</code> and <code>.bib</code> files from PubMed, Embase, Scopus, and Web of Science, import them into overlapping spreadsheet tabs, delete duplicates manually, and discover two weeks later that <code>n_identified - n_duplicates != n_screened</code>.</p>
<p>A deterministic, zero-dependency Python pipeline fixes the arithmetic permanently: normalize DOIs and titles first, log every dropped duplicate with its surviving record ID, and drive your <strong>PRISMA 2020 flow diagram</strong> straight from the audited JSON count object.</p>
<p><img src="https://raw.githubusercontent.com/alcyonecraft/prisma2020-starter/main/assets/prisma_preview.png" alt="PRISMA 2020 Flowchart Preview" /></p>
<h2>1. Normalize DOI Before Falling Back to Fuzzy Title + Year Matching</h2>
<p>Relying purely on exact DOI equality misses records that lack a DOI in older conference abstracts, while matching purely on normalized titles drops unrelated letters with the same generic title ("Editorial" or "Response"). A strict two-stage key hierarchy catches both:</p>
<ol>
<li><strong>Primary key</strong>: lowercase stripped DOI (<code>https://doi.org/</code> prefix removed).</li>
<li><strong>Fallback key</strong>: punctuation-stripped lowercase title + publication year (only when DOI is empty).</li>
</ol>
<pre><code class="language-python">import re

def dedup_key(record: dict[str, str]) -&gt; str:
    doi = (record.get("doi") or "").strip().lower()
    doi = re.sub(r"^https?://(?:dx\.)?doi\.org/", "", doi)
    if doi:
        return f"doi:{doi}"
    title = re.sub(r"[^a-z0-9]+", "", (record.get("title") or "").lower())
    year = (record.get("year") or "").strip()[:4]
    return f"ty:{title}:{year}"
</code></pre>
<p>Every time <code>dedup_key()</code> collides, increment <code>counts["duplicates_removed"]</code> and append <code>(dropped_id, kept_id, key)</code> to an audit CSV so PRISMA box totals stay 100% verifiable during peer review.</p>
<h2>2. Keep PRISMA 2020 Box Arithmetic Locked in One JSON Schema</h2>
<p>Never type numbers directly into vector drawing software. Store exact counts (<code>records_identified</code>, <code>duplicates_removed</code>, <code>records_screened</code>, <code>reports_sought</code>, <code>reports_excluded_reasons</code>, <code>studies_included</code>) in <code>prisma_counts.json</code>, validate the conservation equations (<code>screened == identified - duplicates</code>), and let your plotting script draw the diagram cleanly at <code>400 dpi PNG + vector PDF</code>.</p>
<h2>3. Pair RoB 2 Traffic-Light &amp; Domain Summaries Using the Same Color Grammar</h2>
<p>Using bright traffic-light neon greens/reds hurts print legibility and colorblind readers. Restrained semantic tones (<code>#2F868D</code> teal low risk, <code>#D47A38</code> muted amber some concerns, <code>#C24B56</code> muted coral high risk) keep RoB 2 domain plots clean inside supplementary or main multi-panel figures.</p>
<hr />
<h3>Free MIT Starter + Full PRISMA 2020 &amp; RoB 2 Suite</h3>
<p>Grab the zero-dependency RIS &amp; BibTeX deduplication starter CLI on GitHub, or unlock the full PRISMA 2020 flowchart renderer, RoB 2 traffic-light plots, and GRADE extraction templates:</p>
<ul>
<li><strong>Free MIT Starter (<code>prisma2020-starter</code>)</strong>: <a href="https://github.com/alcyonecraft/prisma2020-starter?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=prisma2020_guide">https://github.com/alcyonecraft/prisma2020-starter?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=prisma2020_guide</a></li>
<li><strong>Try Free Zero-Upload Browser Manuscript &amp; Figure Tools</strong>: <a href="https://alcyonecraft.github.io/tools.html?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=prisma2020_guide">https://alcyonecraft.github.io/tools.html?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=prisma2020_guide</a></li>
<li><strong>Full PRISMA 2020 + RoB 2 Toolkit (<code>DEVTO20</code> for extra 20% off)</strong>: <a href="https://alcyonecraft.gumroad.com/l/prisma2020-review-kit?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=prisma2020_guide">https://alcyonecraft.gumroad.com/l/prisma2020-review-kit?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=prisma2020_guide</a></li>
<li><strong>7-in-1 Complete Researcher Suite ($69 Launch Bundle)</strong>: <a href="https://alcyonecraft.gumroad.com/l/complete-researcher-suite?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=prisma2020_guide">https://alcyonecraft.gumroad.com/l/complete-researcher-suite?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=prisma2020_guide</a></li>
</ul>
]]></content:encoded></item><item><title><![CDATA[Stop Hand-Bolding LaTeX booktabs and Word Three-Line Tables from pandas at 2 AM]]></title><description><![CDATA[Every empirical machine-learning ablation study and clinical baseline Table 1 follows the same slow late-night ritual: rerun a Python script, copy numbers…]]></description><link>https://alcyonecraft.hashnode.dev/stop-hand-bolding-latex-booktabs-and-word-three-line-tables-from-pandas-at-2-am</link><guid isPermaLink="true">https://alcyonecraft.hashnode.dev/stop-hand-bolding-latex-booktabs-and-word-three-line-tables-from-pandas-at-2-am</guid><category><![CDATA[Python]]></category><category><![CDATA[pandas]]></category><category><![CDATA[latex]]></category><category><![CDATA[Machine Learning]]></category><dc:creator><![CDATA[Alcyone]]></dc:creator><pubDate>Sat, 28 Nov 2026 08:49:01 GMT</pubDate><content:encoded><![CDATA[<p>Every empirical machine-learning ablation study and clinical baseline Table 1 follows the same slow late-night ritual: rerun a Python script, copy numbers into Overleaf or Word, manually wrap the best score per column in <code>\textbf{}</code>, wrap the second-best in <code>\underline{}</code>, and inevitably miss one digit after fixing a seed.</p>
<p>Automating table formatting directly from <code>pandas.DataFrame</code> eliminates transcription errors in ~50 lines of Python—as long as you avoid three common LaTeX gotchas.</p>
<p><img src="https://raw.githubusercontent.com/alcyonecraft/journal-tables-starter/main/assets/A5_preview_tables.png" alt="Automated Journal Three-Line Tables Preview" /></p>
<h2>1. Track Metric Direction (<code>↑</code> vs <code>↓</code>) Explicitly Per Column</h2>
<p>Never guess whether larger values are better inside formatting code. Pass a direction map (<code>higher_is_better={"AUROC": True, "Brier": False, "Latency (ms)": False}</code>) so each column ranks independently using <code>sorted(set(col_values))</code>:</p>
<pre><code class="language-python">def format_metric_column(values: list[float], higher_better: bool = True, decimals: int = 3) -&gt; list[str]:
    unique_sorted = sorted(set(values), reverse=higher_better)
    best = unique_sorted[0]
    second = unique_sorted[1] if len(unique_sorted) &gt; 1 else None
    out = []
    for v in values:
        txt = f"{v:.{decimals}f}"
        if v == best:
            out.append(f"\\textbf{{{txt}}}")
        elif second is not None and v == second:
            out.append(f"\\underline{{{txt}}}")
        else:
            out.append(txt)
    return out
</code></pre>
<p>Notice the strict per-cell highlight rule: bold only the single winning cell (never bold an entire row blindly unless every metric in that row won), and pair column headers with <code>$\uparrow$</code> or <code>$\downarrow$</code> so reviewers immediately verify metric orientation.</p>
<h2>2. Escape <code>&lt;</code>, <code>&gt;</code>, <code>&lt;=</code>, and <code>&gt;=</code> Safely for Default OT1 Fonts</h2>
<p>If your Table 1 or regression output emits <code>P &lt; 0.001</code> or <code>Age &gt;= 65</code> directly into <code>\begin{tabular}...\end{tabular}</code> without math wrappers, classic LaTeX (<code>OT1</code> encoding) renders <code>&lt;</code> as an upside-down exclamation mark (<code>¡</code>) and <code>&gt;</code> as <code>¿</code>!</p>
<p>Always normalize inequality tokens inside your table-cell escaper before writing <code>.tex</code>:</p>
<pre><code class="language-python">def escape_latex_cell(text: str) -&gt; str:
    s = str(text)
    s = s.replace("&amp;", r"\&amp;").replace("%", r"\%").replace("_", r"\_")
    s = s.replace("&gt;=", r"$\ge$").replace("&lt;=", r"$\le$")
    s = s.replace("&lt;", r"$&lt;$").replace("&gt;", r"$&gt;$")
    return s
</code></pre>
<h2>3. Keep Three-Line Border Geometry Identical Between LaTeX and Word</h2>
<p>Both IEEE/ICDE LaTeX <code>booktabs</code> (<code>\toprule</code>, <code>\midrule</code>, <code>\bottomrule</code>) and medical journal Word <code>.docx</code> tables follow one exact visual grammar:</p>
<ul>
<li>Zero vertical borders anywhere.</li>
<li>Heavy outer rules (<code>1.5 pt</code> top &amp; bottom in Word; <code>\toprule</code> / <code>\bottomrule</code> in <code>booktabs</code>).</li>
<li>Thin header divider (<code>0.75 pt</code> in Word; <code>\midrule</code> in <code>booktabs</code>).</li>
<li>Right-aligned numbers (<code>S</code> or <code>r</code>) or decimal-aligned values, with <code>0.06–0.08 in</code> cell padding and optional subtle <code>#F2F3F5</code> background tint on your proposed method row (zero bright colors).</li>
</ul>
<hr />
<h3>Free MIT Starter + Complete Clinical &amp; ML Table Generator</h3>
<p>Want a zero-boilerplate Python helper that turns <code>pandas</code> benchmarks into <code>\textbf</code>/<code>\underline</code> LaTeX <code>booktabs</code> snippets right now? Grab the MIT starter on GitHub or check out the full Clinical Table 1 + Regression + Word <code>.docx</code> suite:</p>
<ul>
<li><strong>Free MIT Starter (<code>journal-tables-starter</code>)</strong>: <a href="https://github.com/alcyonecraft/journal-tables-starter?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=pandas_latex_tables">https://github.com/alcyonecraft/journal-tables-starter?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=pandas_latex_tables</a></li>
<li><strong>Full Journal Three-Line Tables Kit (<code>.tex</code> + <code>.docx</code> dual export, Table 1 auto parametric/non-parametric tests — use <code>DEVTO20</code> for extra 20% off)</strong>: <a href="https://alcyonecraft.gumroad.com/l/journal-tables-kit?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=pandas_latex_tables">https://alcyonecraft.gumroad.com/l/journal-tables-kit?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=pandas_latex_tables</a></li>
<li><strong>5-in-1 Complete Researcher Suite (Python + R + AI Agent Skills + Tables + LaTeX Rebuttal)</strong>: <a href="https://alcyonecraft.gumroad.com/l/complete-researcher-suite?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=pandas_latex_tables">https://alcyonecraft.gumroad.com/l/complete-researcher-suite?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=pandas_latex_tables</a></li>
</ul>
]]></content:encoded></item><item><title><![CDATA[Publication-Grade Kaplan-Meier Risk Tables and Volcano Plots in Pure ggplot2 + survival (Zero Wrapper Hell)]]></title><description><![CDATA[Right before a biomedical manuscript deadline, few things stall submission faster than upgrading R or Bioconductor and watching helper wrappers (survminer…]]></description><link>https://alcyonecraft.hashnode.dev/publication-grade-kaplan-meier-risk-tables-and-volcano-plots-in-pure-ggplot2-survival-zero-wrapper-hell</link><guid isPermaLink="true">https://alcyonecraft.hashnode.dev/publication-grade-kaplan-meier-risk-tables-and-volcano-plots-in-pure-ggplot2-survival-zero-wrapper-hell</guid><category><![CDATA[open source]]></category><category><![CDATA[bioinformatics]]></category><category><![CDATA[Data Science]]></category><category><![CDATA[R Language]]></category><dc:creator><![CDATA[Alcyone]]></dc:creator><pubDate>Sat, 28 Nov 2026 07:49:43 GMT</pubDate><content:encoded><![CDATA[<p>Right before a biomedical manuscript deadline, few things stall submission faster than upgrading R or Bioconductor and watching helper wrappers (<code>survminer</code>, <code>ggpubr</code>, <code>patchwork</code>, or <code>ggrepel</code>) fail with S3 method conflicts or clipped risk-table labels.</p>
<p>You only need <strong><code>ggplot2</code> + <code>survival</code> + <code>grid</code></strong> (three stable packages installed almost everywhere) to render journal-grade survival curves with an aligned <code>Number at risk</code> table and crisp differential expression volcano plots calibrated to <code>&gt;= 7 pt</code> in print.</p>
<p><img src="https://raw.githubusercontent.com/alcyonecraft/r-biomed-figure-starter/main/examples/01_kaplan_meier_risktable.png" alt="Kaplan-Meier Risk Table in Pure ggplot2" /></p>
<h2>1. Keep Your Theme Calibrated for 6.5-Inch A4 Scaling</h2>
<p>Drawing a figure at <code>9.2–10.0 in</code> wide and scaling it into a <code>6.5 in</code> journal column shrinks fonts by roughly <code>0.68x</code>. Setting <code>base_size = 11</code> keeps every tick mark and risk-table count cleanly above <code>7 pt</code> on paper, while <code>cairo_pdf</code> embeds TrueType fonts without rasterizing text:</p>
<pre><code class="language-r">library(ggplot2)
library(survival)
library(grid)

theme_publication &lt;- function(base_size = 11) {
  theme_classic(base_size = base_size, base_family = "Helvetica") +
    theme(
      axis.line = element_line(colour = "#3A3A3A", linewidth = 0.45),
      axis.ticks = element_line(colour = "#3A3A3A", linewidth = 0.40),
      axis.text = element_text(colour = "#222428", size = rel(0.90)),
      axis.title = element_text(colour = "#222428", size = rel(1.02), face = "bold"),
      legend.background = element_blank(),
      legend.key = element_blank(),
      legend.title = element_blank(),
      panel.grid = element_blank()
    )
}
</code></pre>
<h2>2. Align the Survival Curve and Number-at-Risk Table with Pure <code>grid</code></h2>
<p>Instead of loading extra layout frameworks, convert both the survival step-ribbon plot and the risk-table <code>geom_text()</code> plot into <code>ggplotGrob()</code> objects, equalize their vertical panel widths, and stack them inside a two-row <code>grid.layout</code>:</p>
<pre><code class="language-r">fit &lt;- survfit(Surv(time, status) ~ group, data = cohort_df)
lr  &lt;- survdiff(Surv(time, status) ~ group, data = cohort_df)
pval &lt;- 1 - pchisq(lr$chisq, df = length(lr$n) - 1)

# Build p_km (step + 95% CI ribbon) and p_risk (exact time break counts)
g_km   &lt;- ggplotGrob(p_km)
g_risk &lt;- ggplotGrob(p_risk)
max_w  &lt;- grid::unit.pmax(g_km$widths[2:5], g_risk$widths[2:5])
g_km$widths[2:5]   &lt;- max_w
g_risk$widths[2:5] &lt;- max_w
</code></pre>
<p>Because <code>g_km$widths[2:5]</code> and <code>g_risk$widths[2:5]</code> share identical axis margin widths, every <code>0, 12, 24, 36, 48</code> risk count lines up pixel-for-pixel under the time ticks without <code>survminer</code> dependencies.</p>
<h2>3. Stagger Top Gene Callouts on DEG Volcano Plots</h2>
<p>Default volcano scatter plots either pile labels directly on top of clustered points or draw chaotic crossing connector lines. Ranking the top up- and down-regulated genes by <code>-log10(FDR) * abs(log2FC)</code> and assigning deterministic <code>(nudge_x, nudge_y)</code> offsets keeps gene symbols readable even in dense RNA-seq cohorts:</p>
<p><img src="https://raw.githubusercontent.com/alcyonecraft/r-biomed-figure-starter/main/examples/02_volcano_deg.png" alt="DEG Volcano Plot in Pure ggplot2" /></p>
<hr />
<h3>Free MIT Starter + Complete 6-Template Biomedical R Suite</h3>
<p>The pure <code>ggplot2</code> + <code>survival</code> + <code>grid</code> starter scripts for both the Kaplan-Meier risk table and DEG volcano plot are free under MIT on GitHub:</p>
<ul>
<li><strong>Free MIT R Starter (<code>r-biomed-figure-starter</code>)</strong>: <a href="https://github.com/alcyonecraft/r-biomed-figure-starter?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=r_ggplot2_biomed">https://github.com/alcyonecraft/r-biomed-figure-starter?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=r_ggplot2_biomed</a></li>
<li><strong>Full 6-Template R Suite (KM, Volcano, Pathway Dotplot, Clinical Forest, Violin + Wilcoxon Brackets, Clustered Correlation Heatmap — use <code>DEVTO20</code> for extra 20% off)</strong>: <a href="https://alcyonecraft.gumroad.com/l/r-biomed-figure-kit?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=r_ggplot2_biomed">https://alcyonecraft.gumroad.com/l/r-biomed-figure-kit?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=r_ggplot2_biomed</a></li>
<li><strong>5-in-1 Complete Researcher Suite (Python + R + AI Agent Skills + Tables + LaTeX Rebuttal)</strong>: <a href="https://alcyonecraft.gumroad.com/l/complete-researcher-suite?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=r_ggplot2_biomed">https://alcyonecraft.gumroad.com/l/complete-researcher-suite?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=r_ggplot2_biomed</a></li>
</ul>
]]></content:encoded></item><item><title><![CDATA[Stopping AI Citation Hallucinations and Cliché Prose in Research Drafts with a 5-State Verification Taxonomy]]></title><description><![CDATA[Using AI coding assistants (Claude Code, Cursor, Codex) to edit academic manuscripts speeds up restructuring—until two subtle failure modes hit peer…]]></description><link>https://alcyonecraft.hashnode.dev/stopping-ai-citation-hallucinations-and-clich-prose-in-research-drafts-with-a-5-state-verification-taxonomy</link><guid isPermaLink="true">https://alcyonecraft.hashnode.dev/stopping-ai-citation-hallucinations-and-clich-prose-in-research-drafts-with-a-5-state-verification-taxonomy</guid><category><![CDATA[Python]]></category><category><![CDATA[Productivity]]></category><category><![CDATA[Machine Learning]]></category><category><![CDATA[AI]]></category><dc:creator><![CDATA[Alcyone]]></dc:creator><pubDate>Sat, 28 Nov 2026 07:45:21 GMT</pubDate><content:encoded><![CDATA[<p>Using AI coding assistants (Claude Code, Cursor, Codex) to edit academic manuscripts speeds up restructuring—until two subtle failure modes hit peer review:</p>
<ol>
<li><strong>Fabricated or mismatched bibliography metadata</strong>: a real author paired with a hallucinated volume/year, a preprint DOI presented as a peer-reviewed journal publication, or a retracted paper slipping into the Discussion.</li>
<li><strong>LLM cliché inflation &amp; unintended numeric drift</strong>: words like <em>"delve into"</em>, <em>"intricate tapestry"</em>, <em>"testament to"</em>, and <em>"paving the way"</em>, or worse—an assistant rounding <code>p = 0.048</code> to <code>p &lt; 0.05</code> or erasing a cohort denominator while polishing flow.</li>
</ol>
<p>Binary "valid vs. fake" citation checkers break down immediately in practice because an HTTP <code>429</code> timeout from Crossref gets flagged identically to a nonexistent DOI. Here is a deterministic, zero-dependency design that avoids both traps.</p>
<img src="https://raw.githubusercontent.com/alcyonecraft/academic-agent-starter/main/assets/a3_demo.gif" alt="Alcyone Academic Agent CLI Showcase" style="display:block;margin:0 auto" />

<h2>1. Replace Binary Pass/Fail with a 5-State Verification Taxonomy</h2>
<p>Every entry in your <code>.bib</code> file should resolve into exactly one explicit state—never silently dropped or guessed:</p>
<table>
<thead>
<tr>
<th>State</th>
<th>Meaning</th>
<th>Required Action</th>
</tr>
</thead>
<tbody><tr>
<td><code>VERIFIED</code></td>
<td>Exact DOI/PMID match across Crossref or OpenAlex (title + first author + year agree)</td>
<td>Safe to cite</td>
</tr>
<tr>
<td><code>METADATA_CONFLICT</code></td>
<td>DOI exists, but year, journal, or title differs from your <code>.bib</code> record</td>
<td>Fix <code>.bib</code> fields from registry response</td>
</tr>
<tr>
<td><code>RETRACTED_OR_CONCERN</code></td>
<td>Crossref <code>update-to</code> / retraction notice or OpenAlex <code>is_retracted=true</code> present</td>
<td>Remove or disclose explicitly</td>
</tr>
<tr>
<td><code>UNRESOLVED_NETWORK</code></td>
<td>Timeout, HTTP 429, or TLS failure—never treated as verified or fake</td>
<td>Re-run with backoff / polite <code>mailto</code> header</td>
</tr>
<tr>
<td><code>NOT_FOUND_CONFIRMED</code></td>
<td>Confirmed missing across &gt;= 2 independent registries (Crossref + OpenAlex)</td>
<td>Replace or delete fabricated entry</td>
</tr>
</tbody></table>
<p>Separating <code>UNRESOLVED_NETWORK</code> from <code>NOT_FOUND_CONFIRMED</code> eliminates false positives during batch runs while guaranteeing no unverified citation reaches camera-ready PDFs.</p>
<h2>2. Deterministic Prose Linting Without Third-Party Dependencies</h2>
<p>LLM editing rules work best when paired with a repeatable CLI check you can run before every commit. Below is a minimal zero-dependency Python scanner that flags common AI filler phrases and leftover placeholders (<code>TODO</code>, <code>TBD</code>, <code>[insert ...]</code>) while logging line numbers:</p>
<pre><code class="language-python">import re
import sys
from pathlib import Path

CLICHE_PATTERNS = [
    r"\bdelve\s+into\b",
    r"\bintricate\s+tapestry\b",
    r"\btestament\s+to\b",
    r"\bpaving\s+the\s+way\b",
    r"\bin\s+conclusion,?\s+our\s+study\b",
    r"\bgroundbreaking\s+paradigm\b",
]
PLACEHOLDER_RE = re.compile(r"\b(?:TODO|TBD|XXX|FIXME)\b|\[(?:insert|placeholder)[^\]]*\]", re.I)
CLICHE_RE = re.compile("|".join(CLICHE_PATTERNS), re.I)

def scan_markdown(path: Path) -&gt; list[str]:
    findings = []
    for idx, line in enumerate(path.read_text(encoding="utf-8").splitlines(), start=1):
        if m := CLICHE_RE.search(line):
            findings.append(f"L{idx} [CLICHE]: '{m.group(0)}' -&gt; {line.strip()[:80]}")
        if m := PLACEHOLDER_RE.search(line):
            findings.append(f"L{idx} [PLACEHOLDER]: '{m.group(0)}' -&gt; {line.strip()[:80]}")
    return findings

if __name__ == "__main__":
    issues = scan_markdown(Path(sys.argv[1]))
    print("\n".join(issues) if issues else "PASS: 0 clichés or placeholders.")
</code></pre>
<h2>3. Enforcing a Numeric Integrity Diff Guard in Agent Rules</h2>
<p>Whenever you ask Claude Code or Cursor to tighten Methods or Results prose, pair your <code>SKILL.md</code> or <code>.cursor/rules/*.mdc</code> instructions with a strict numeric conservation constraint:</p>
<ul>
<li>Extract all numeric tokens (<code>\d+(?:\.\d+)?%?(?:\s*[±×x]\s*\d+(?:\.\d+)?)?</code>) before and after AI editing.</li>
<li>Reject any prose revision whose numeric multiset changes unless you explicitly authorized a unit conversion or updated result table.</li>
<li>Require every rebuttal claim (<code>R1-C1</code>, <code>R2-C3</code>) to cite exact file paths, script names, and verified line/table indices before drafting the response paragraph.</li>
</ul>
<hr />
<h3>Free MIT Starter + Complete 4-Skill Academic Agent Suite</h3>
<p>You can grab the zero-dependency MIT De-AI prose linter and drop-in starter skill on GitHub, or unlock the full Crossref/OpenAlex 5-state citation verifier CLI, rebuttal ledger generator, and numeric guardrails:</p>
<ul>
<li><strong>Free MIT Starter (</strong><code>academic-agent-starter</code><strong>)</strong>: <a href="https://github.com/alcyonecraft/academic-agent-starter?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=ai_citation_guard">https://github.com/alcyonecraft/academic-agent-starter?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=ai_citation_guard</a></li>
<li><strong>Full 4-Skill + 3-CLI Suite (</strong><code>DEVTO20</code> <strong>for extra 20% off;</strong> <code>LAUNCH20</code> <strong>also active)</strong>: <a href="https://alcyonecraft.gumroad.com/l/academic-agent-skill-pack?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=ai_citation_guard">https://alcyonecraft.gumroad.com/l/academic-agent-skill-pack?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=ai_citation_guard</a></li>
<li><strong>5-in-1 Complete Researcher Suite (Python + R + AI Agent Skills + Tables + LaTeX Rebuttal)</strong>: <a href="https://alcyonecraft.gumroad.com/l/complete-researcher-suite?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=ai_citation_guard">https://alcyonecraft.gumroad.com/l/complete-researcher-suite?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=ai_citation_guard</a></li>
</ul>
]]></content:encoded></item><item><title><![CDATA[Why Most Python Figures Look Fine on a 27-Inch Monitor and Fail Journal Peer Review (And 5 Fixes That Solve It)]]></title><description><![CDATA[Most researchers export Matplotlib figures at 300 dpi on a 10 x 6 inch canvas, glance at the PNG in a slide deck, and paste it straight into a two-column…]]></description><link>https://alcyonecraft.hashnode.dev/why-most-python-figures-look-fine-on-a-27-inch-monitor-and-fail-journal-peer-review-and-5-fixes-that-solve-it</link><guid isPermaLink="true">https://alcyonecraft.hashnode.dev/why-most-python-figures-look-fine-on-a-27-inch-monitor-and-fail-journal-peer-review-and-5-fixes-that-solve-it</guid><category><![CDATA[Python]]></category><category><![CDATA[Matplotlib]]></category><category><![CDATA[Data Science]]></category><category><![CDATA[research]]></category><dc:creator><![CDATA[Alcyone]]></dc:creator><pubDate>Sat, 28 Nov 2026 07:35:13 GMT</pubDate><content:encoded><![CDATA[<p>Most researchers export Matplotlib figures at <code>300 dpi</code> on a <code>10 x 6</code> inch canvas, glance at the PNG in a slide deck, and paste it straight into a two-column journal manuscript. Once LaTeX or Word scales that graphic down to a <code>6.5 inch</code> (<code>16.5 cm</code>) full-width block or a <code>3.2 inch</code> single column, 10 pt screen labels shrink below <code>5 pt</code>, axis spines clutter the whitespace, and Type 3 PDF fonts trigger pre-press warnings.</p>
<p>Here are five deterministic fixes that make every Matplotlib figure crisp at actual print scale—plus a runnable helper you can drop into any existing script.</p>
<p><img src="https://raw.githubusercontent.com/alcyonecraft/publication-figure-starter/main/assets/a1_demo.gif" alt="Alcyone Matplotlib Publication Figure Showcase" /></p>
<h2>1. Calibrate Font Sizes Against Final Print Width, Not Screen Size</h2>
<p>When you draw a figure at <code>9.6 in</code> wide and place it across a <code>6.5 in</code> A4 text column, every font scales by <code>6.5 / 9.6 = 0.677</code>. Setting Matplotlib's base font to <code>10.5 pt</code> yields <code>7.1 pt</code> in print—safely above the <code>7 pt</code> readability floor used by Nature, IEEE, and major clinical journals.</p>
<p>Instead of hardcoding random <code>14 pt</code> or <code>8 pt</code> overrides per plot, set your baseline cleanly inside <code>rcParams</code>:</p>
<pre><code class="language-python">import matplotlib as mpl

def apply_journal_rc() -&gt; None:
    mpl.rcParams.update({
        "font.family": "sans-serif",
        "font.sans-serif": ["Arial", "Helvetica", "DejaVu Sans"],
        "mathtext.fontset": "stixsans",
        "font.size": 10.5,
        "axes.labelsize": 11.2,
        "xtick.labelsize": 10.0,
        "ytick.labelsize": 10.0,
        "legend.fontsize": 9.5,
        "legend.frameon": False,
        "axes.spines.top": False,
        "axes.spines.right": False,
        "axes.grid": False,
        "axes.edgecolor": "#3A3A3A",
        "axes.linewidth": 0.75,
        "pdf.fonttype": 42,   # TrueType instead of Type 3 bitmaps
        "ps.fonttype": 42,
        "savefig.dpi": 400,
    })
</code></pre>
<p>Notice <code>"pdf.fonttype": 42</code>: without it, Matplotlib defaults to Type 3 fonts, which break text selection in Acrobat and fail automated IEEE PDF eXpress checks.</p>
<h2>2. Ditch Saturated Red/Blue/Green Defaults for Soft-Academic Dual-Tone</h2>
<p>Default <code>tab10</code> colors (<code>#1f77b4</code>, <code>#ff7f0e</code>, <code>#2ca02c</code>) shout "unformatted script output" and break down for red-green colorblind readers. Pairing a <strong>desaturated fill</strong> with a <strong>darker matched stroke</strong> keeps bars, violins, and confidence ribbons readable in both color PDFs and grayscale laser printouts:</p>
<table>
<thead>
<tr>
<th>Role</th>
<th>Light Fill</th>
<th>Matched Stroke</th>
</tr>
</thead>
<tbody><tr>
<td>Primary Cohort</td>
<td><code>#C4ECDA</code></td>
<td><code>#2F868D</code></td>
</tr>
<tr>
<td>Comparator / Baseline</td>
<td><code>#DAE2F5</code></td>
<td><code>#4B6EB0</code></td>
</tr>
<tr>
<td>Risk / Highlight</td>
<td><code>#F5B7BE</code></td>
<td><code>#C24B56</code></td>
</tr>
<tr>
<td>Neutral Reference</td>
<td><code>#D5D6DC</code></td>
<td><code>#6C6F78</code></td>
</tr>
</tbody></table>
<p><img src="https://raw.githubusercontent.com/alcyonecraft/publication-figure-starter/main/assets/compare_forest.png" alt="Forest Plot Before and After" /></p>
<h2>3. Add a Deterministic Bounding-Box Overlap Check Before Exporting</h2>
<p>Visual inspection misses subtle <code>1–2 px</code> collisions between direct bar labels, bracket annotations, and axis ticks—especially when scripts regenerate across updated cohorts. Running a lightweight renderer pass over <code>Text</code> artists before <code>savefig()</code> catches collisions automatically:</p>
<pre><code class="language-python">def check_text_overlaps(fig) -&gt; list[tuple[str, str]]:
    fig.canvas.draw()
    renderer = fig.canvas.get_renderer()
    boxes = []
    for ax in fig.axes:
        for txt in ax.texts:
            if not txt.get_visible() or not txt.get_text().strip():
                continue
            bb = txt.get_window_extent(renderer=renderer).shrunk(0.92, 0.92)
            boxes.append((txt.get_text()[:24], bb))
    collisions = []
    for i in range(len(boxes)):
        for j in range(i + 1, len(boxes)):
            if boxes[i][1].overlaps(boxes[j][1]):
                collisions.append((boxes[i][0], boxes[j][0]))
    return collisions
</code></pre>
<p><img src="https://raw.githubusercontent.com/alcyonecraft/publication-figure-starter/main/assets/compare_roc.png" alt="ROC Curve Before and After" /></p>
<h2>4. Keep Legends Borderless and Use Multi-Row <code>2x2</code> Grids Instead of Wide Strips</h2>
<p>Putting three or four panels into a <code>14 x 4</code> horizontal strip forces huge scale-down in Word or LaTeX, collapsing panel labels below <code>5 pt</code>. Prefer <code>2x2</code> layouts around <code>9.2–10.2 in</code> wide, drop <code>frameon=True</code> legend boxes, and label panels directly (<code>A</code>, <code>B</code>, <code>C</code>, <code>D</code>) in bold <code>15 pt</code> sans-serif above each top-left corner.</p>
<h2>5. Export Paired <code>400 dpi</code> PNG + Vector PDF Together</h2>
<p>Reviewers read compressed Word/PDF drafts (<code>400 dpi</code> PNG renders fast with zero jagged edges), while copyeditors typeset vector <code>.pdf</code> files cleanly. Always wrap both calls in one helper with <code>bbox_inches="tight", pad_inches=0.06</code> so clipped tick labels never slip into submission.</p>
<hr />
<h3>Free MIT Starter + Full 8-Template Suite</h3>
<p>If you want ready-to-run subgroup forest plots and paired slopegraphs calibrated with these exact settings, grab the free MIT starter repository on GitHub:</p>
<ul>
<li><strong>Free MIT Starter (<code>publication-figure-starter</code>)</strong>: <a href="https://github.com/alcyonecraft/publication-figure-starter?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=matplotlib_journal_guide">https://github.com/alcyonecraft/publication-figure-starter?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=matplotlib_journal_guide</a></li>
<li><strong>Full 8-Template Python Kit + Automated QA (<code>DEVTO20</code> for extra 20% off; <code>LAUNCH20</code> also active)</strong>: <a href="https://alcyonecraft.gumroad.com/l/publication-figure-kit?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=matplotlib_journal_guide">https://alcyonecraft.gumroad.com/l/publication-figure-kit?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=matplotlib_journal_guide</a></li>
<li><strong>5-in-1 Complete Researcher Suite (Python + R + AI Agent Skills + Tables + LaTeX Rebuttal)</strong>: <a href="https://alcyonecraft.gumroad.com/l/complete-researcher-suite?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=matplotlib_journal_guide">https://alcyonecraft.gumroad.com/l/complete-researcher-suite?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=matplotlib_journal_guide</a></li>
</ul>
]]></content:encoded></item></channel></rss>