skills/scientific-writing/nejm-figure-guide/SKILL.md
NEJM figure preparation: resolution (300-1200 DPI), editable vector formats (AI/EPS/SVG), in-house medical illustration policy, and strict image integrity requirements.
npx skillsauth add jaechang-hits/sciagent-skills nejm-figure-guideInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This guide provides the complete specifications for preparing figures for submission to the New England Journal of Medicine (NEJM). A unique feature of NEJM is that medical illustrations are created by NEJM's in-house illustrators working directly with authors — authors should NOT submit finished medical illustrations due to copyright considerations.
Official reference: https://www.nejm.org/author-center/new-manuscripts
| Image Type | Minimum Resolution | Notes | |---|---|---| | Black-and-white line art | 1,200 DPI | Highest requirement | | Photographic / halftone images | 300 DPI | Standard for photographs | | Peer review stage | Lower resolution acceptable | High-res required for final publication |
from PIL import Image
def check_nejm_resolution(image_path, image_type='photo', stage='final'):
"""Check if image meets NEJM resolution requirements.
Args:
image_type: 'lineart' (1200 DPI) or 'photo' (300 DPI)
stage: 'review' (lower OK) or 'final' (strict requirements)
"""
min_dpi = {'lineart': 1200, 'photo': 300}
required = min_dpi.get(image_type, 300)
if stage == 'review':
print("NOTE: Lower resolution acceptable for peer review")
required = 150 # relaxed for review
img = Image.open(image_path)
dpi = img.info.get('dpi', (72, 72))
print(f"Stage: {stage} | Type: {image_type}")
print(f"Required: {required} DPI | Actual: {dpi[0]} DPI")
passed = dpi[0] >= required
print("PASS" if passed else "FAIL")
return passed
| Figure Type | Preferred Format | Notes | |---|---|---| | Data visualizations (graphs, plots, diagrams) | AI, EPS, SVG | Editable vector files preferred | | Photographic images | TIFF | High-resolution raster | | Medical illustrations | Do NOT submit | NEJM illustrators create these |
IMPORTANT: NEJM's in-house medical illustrators will work directly with authors to create medical illustrations. Authors should NOT submit finished illustrations due to copyright considerations. The journal retains copyright on illustrations created by their team.
NEJM does not publish detailed size specifications in their public guidelines. General best practices:
| Element | Specification | |---|---| | Preferred style | Sans-serif | | Historical font | Univers (NEJM house font) | | Alternatives | Helvetica, Arial |
import matplotlib.pyplot as plt
def set_nejm_fonts():
"""Configure Matplotlib for NEJM figure fonts."""
plt.rcParams.update({
'font.family': 'sans-serif',
'font.sans-serif': ['Univers', 'Helvetica', 'Arial'],
'font.size': 8,
'axes.labelsize': 8,
'axes.titlesize': 8,
'xtick.labelsize': 7,
'ytick.labelsize': 7,
'legend.fontsize': 7,
})
def check_clinical_image_text(title, legend):
"""Validate text limits for NEJM Images in Clinical Medicine."""
title_words = len(title.split())
legend_words = len(legend.split())
issues = []
if title_words > 8:
issues.append(f"Title has {title_words} words (max 8)")
if legend_words > 150:
issues.append(f"Legend has {legend_words} words (max 150)")
if issues:
for issue in issues:
print(f"ISSUE: {issue}")
else:
print(f"PASS: Title ({title_words} words), Legend ({legend_words} words)")
return len(issues) == 0
from PIL import Image
import os
def validate_nejm_figure(image_path, image_type='photo', stage='final'):
"""Full validation of a figure against NEJM requirements."""
img = Image.open(image_path)
issues = []
# 1. Resolution check
min_dpi = {'lineart': 1200, 'photo': 300}
required = min_dpi.get(image_type, 300)
if stage == 'review':
required = 150
dpi = img.info.get('dpi', (72, 72))
if dpi[0] < required:
issues.append(f"Resolution {dpi[0]} DPI below {required} DPI for {image_type} ({stage})")
# 2. Color mode
if img.mode not in ('RGB', 'RGBA', 'L'):
issues.append(f"Color mode {img.mode} may not be ideal; use RGB or Grayscale")
# 3. Format check
fmt = img.format
vector_preferred = image_type != 'photo'
if vector_preferred and fmt and fmt.upper() in ('JPEG', 'PNG'):
issues.append(f"Data visualizations: prefer vector format (AI, EPS, SVG) over {fmt}")
# Report
print(f"=== NEJM Figure Validation ({stage}) ===")
print(f"Dimensions: {img.size[0]} x {img.size[1]} px")
print(f"DPI: {dpi[0]} x {dpi[1]}")
print(f"Color mode: {img.mode}")
if issues:
print(f"\nISSUES FOUND ({len(issues)}):")
for issue in issues:
print(f" - {issue}")
else:
print("\nAll checks PASSED")
print("\nREMINDER: Do NOT submit finished medical illustrations (NEJM creates these)")
print("REMINDER: Remove ALL patient-identifying information from images")
return len(issues) == 0
NEJM's most distinctive policy is that medical illustrations are created by their in-house illustrators working directly with authors. Authors should NOT submit finished medical illustrations. The journal retains copyright on illustrations created by their team. This applies only to medical illustrations — data visualizations and photographs are author-submitted.
NEJM accepts lower-resolution figures during peer review to reduce submission friction. However, final publication requires full resolution: 1,200 DPI for line art and 300 DPI for photographs. Authors should prepare high-resolution originals from the start to avoid rework.
NEJM enforces strict patient privacy requirements. All patient-identifying information must be removed from images, including faces, names, medical record numbers, and any other identifiable features. This is non-negotiable and applies to all clinical images regardless of consent status.
What type of figure are you preparing?
├── Medical illustration (anatomy, mechanism)
│ └── Do NOT submit → NEJM illustrators create these
├── Data visualization (graph, chart, diagram)
│ ├── Vector source available → AI, EPS, or SVG (preferred)
│ └── Raster only → TIFF at 1,200 DPI (line art) or 300 DPI (photo)
├── Clinical photograph
│ ├── Patient identifiable? → Remove ALL identifying information
│ └── Ready for submission → TIFF at 300+ DPI
└── What stage?
├── Peer review → Lower resolution acceptable
└── Final publication → Full resolution required
| Scenario | Format | Resolution | Special Considerations | |---|---|---|---| | Kaplan-Meier curve | AI, EPS, SVG | Vector | Editable format preferred | | Clinical photograph | TIFF | 300+ DPI | Remove patient identifiers | | Histology image | TIFF | 300+ DPI | Include scale bar | | Flowchart or diagram | AI, EPS, SVG | Vector | Use Univers or Helvetica | | Medical illustration | Do NOT submit | N/A | NEJM creates in-house | | Images in Clinical Medicine | TIFF/JPEG | 300+ DPI | Title max 8 words, legend max 150 words |
Before submitting figures to NEJM, verify:
tools
Fast short-read DNA aligner for WGS/WES/ChIP-seq. 2× faster BWA-MEM successor; outputs SAM/BAM with read group headers for GATK. Primary plus supplementary records for chimeric reads. Use STAR for RNA-seq splice-aware alignment; Bowtie2 is a comparable alternative.
tools
smina molecular docking CLI. AutoDock Vina fork with customizable scoring functions, native SDF/MOL2/PDB ligand input, autoboxing, local energy minimization, and per-atom score breakdowns. Pipeline: receptor PDBQT prep -> ligand prep (RDKit/OpenBabel) -> dock via autobox or explicit grid -> rescore/minimize with custom scoring -> rank poses by affinity. Choose smina over Vina when you need custom scoring terms (--custom_scoring), local optimization of an existing pose (--local_only), per-atom contributions (--atom_term_data), or SDF/MOL2 ligands without manual PDBQT conversion. For unknown binding sites use diffdock-blind-docking; for the Python-bindings/Vinardo workflow use autodock-vina-docking.
development
mdtraj molecular dynamics trajectory analysis (Python). Reads DCD/XTC/TRR/NetCDF/H5/PDB topologies and trajectories; computes RMSD vs time, radius of gyration, per-residue RMSF, residue-residue contact frequency maps, phi/psi torsions for Ramachandran plots (general + Gly/Pro), and 8-state DSSP secondary structure. Modules: trajectory I/O, geometry (distances/angles/dihedrals), structural analysis (RMSD/Rg/RMSF/SASA), contacts, hydrogen bonds, secondary structure (DSSP), NMR observables. For broader atom-selection grammar use mdanalysis-trajectory; for running MD simulations use OpenMM/GROMACS.
development
Programmatic PubMed access via NCBI E-utilities REST API. Covers Boolean/MeSH queries, field-tagged search, endpoints (ESearch, EFetch, ESummary, EPost, ELink), history server for batches, citation matching, systematic review strategies. Use for biomedical literature search or automated pipelines.