A computational methods section should let another researcher repeat the analysis and understand its limits. It is not a list of software names; it is a description of the data, the steps, the parameters and the decisions.
Start with the data
Describe the samples, the sequencing or measurement platform, the read length, the depth and the file formats. State the reference genome or database and its version.
For public data, give the accession numbers. For new data, say where the data are deposited or how they can be requested. A methods section that cannot be linked to the data is hard to verify.
Describe the workflow
Give the steps in the order they were performed. For each step, name the tool and the version, and state the key parameters.
A sentence such as "reads were aligned with BWA-MEM" is a start, but it leaves out the reference, the read group, the marking of duplicates and the filtering. A reader cannot reproduce the alignment from that sentence alone.
Software versions
Versions matter because defaults and algorithms change. Report the version of each major tool and the version of the programming language or environment.
If a tool was run through a wrapper or a workflow manager, report the wrapper and the underlying tool. A container image or an environment file is a compact way to record the exact versions.
Parameters
Report the parameters that affect the result. Not every default needs to be listed, but the non-default choices and the choices that are central to the method should be.
For a variant caller, the model and the filtering thresholds matter. For an alignment, the scoring and the gap penalties matter. For a statistical test, the model, the covariates and the correction matter.
Code and reproducibility
If custom code was written, say where it is available. A repository with a license and a README is better than a promise to share on request.
If the code is not shared, explain why and provide enough detail to reproduce the analysis. A methods section that depends on unavailable code is weaker.
Statistical methods
Describe the design, the unit of replication, the model and the multiple-testing correction. State the software and the version.
Do not report only p-values. Include the effect size, the confidence interval and the sample size. For an omics study, state the filtering and the false discovery rate.
Figures and tables
Explain how the figures were generated. A figure that was edited after plotting should be described. State the software and the settings for any image processing.
For microscopy or gel images, avoid selective cropping and state any adjustments. A figure should represent the data, not an idealised version of it.
Limitations
A good methods section acknowledges what the method cannot do. A short-read assembly cannot resolve long repeats; a bulk RNA-seq study cannot distinguish cell types; a docking study cannot measure affinity.
The limitations belong in the discussion as well, but a brief statement in the methods helps the reader interpret the result.
A checklist
- Data source, accessions and file types.
- Reference genome or database and version.
- Software and versions.
- Key parameters and non-default choices.
- Statistical model and correction.
- Code availability.
- Figure generation.
- Limitations.
A worked methods paragraph
A reproducible paragraph might read: "Reads were trimmed with fastp (version recorded in the repository) using default quality settings and adapter detection. Trimmed reads were aligned to GRCh38 (GENCODE release recorded in the repository) with BWA-MEM (version recorded) and duplicates were marked with Picard. Variant calls were made with GATK HaplotypeCaller (version recorded) in GVCF mode, combined with GenomicsDBImport and genotyped with GenotypeGVCFs. Calls were filtered with the hard filters recorded in the configuration file. The code and configuration are available at the repository listed in the data availability statement."
The paragraph names the steps, the order and the key tools, and points to the exact versions and parameters. It does not pretend that a short sentence is enough. For a multi-step workflow, a supplementary table with one row per step and a column for the tool, version and parameters is often clearer than a long paragraph.
Data availability
State where the data are deposited, the accession numbers and any access conditions. If the data cannot be shared, explain why and describe the process for a reasonable request.
For human data, the statement should respect consent and privacy. A controlled-access repository is appropriate when open deposit is not permitted.
A reproducibility checklist
- Can a reader identify the input data?
- Are the reference and database versions stated?
- Are the software versions stated?
- Are the non-default parameters stated?
- Is the statistical model described?
- Is the code available?
- Are the figures traceable to the analysis?
- Are the limitations stated?
A methods section is a record of decisions, not only a list of tools. The reader should be able to see why a step was included, what it assumed and where the result could go wrong. That level of detail makes the work easier to review and easier to build on.
Key points
- Describe the data, the steps, the parameters and the decisions.
- Report software versions.
- Give accessions and code availability.
- Include effect sizes and corrections.
- State the limitations.
Common mistakes
- Listing software without versions.
- Omitting the reference genome version.
- Reporting a p-value without the model.
- Saying "standard settings" when the settings were changed.
- Claiming reproducibility without sharing code or data.
When to ask for help
If a reviewer cannot follow the methods, if the analysis used custom code, or if the data cannot be shared, ask for a review before submission. You can order an analysis or read the reproducible notebooks guide. The Research Methodology & Scientific Writing course covers methods writing, and the data management guide covers the files.
Sources and further reading
Written by the Solagene team for research and education. Found an error? Tell us and we will correct it.