Workflows

Writing the bioinformatics part of a methods section

How to write the bioinformatics part of a methods section: data, tool versions, parameters, statistics, environments and common reviewer complaints.

The methods section is where a reader decides two things at once: whether your result is believable, and whether they could repeat it. In bioinformatics it is also the section most often written last, from memory, in a hurry. Software names get dropped in without versions, parameters are called "default", and the database release is left out. Reviewers notice, and the work becomes harder to trust than it needs to be. This guide is about writing the computational part of methods so that it does its job.

What the section has to accomplish

A good methods section answers four questions in order:

  1. What data did you use, and where did it come from?
  2. What did you do to it, step by step?
  3. Which tools and versions performed each step, with which settings?
  4. How did you decide what counted as a result?

It is not a tutorial, a literature review or a description of what the software is generally used for. It is a record of your specific choices.

Describe the data before the software

Start with the input. Say whether the data are new or public, give accessions or repository identifiers, and state the version or download date. For sequencing, give the platform, read length, layout (single or paired), and the number of samples per group. For public data, give the accession and say which samples you selected.

Then state what you excluded and why. Samples that failed quality control, libraries that were outliers, and variants that were filtered out all belong here. A reader cannot judge a result without knowing what was removed.

If you used a reference genome, name the assembly and the annotation release, not just the species. "Human genome" is not enough; GRCh38 is a start, and the annotation version matters for gene-level results.

Name tools, versions and parameters

Every computational step should name the tool, the version, and any settings that a reader would need to repeat it.

  • Version numbers matter. Results change between releases. Write "STAR 2.7.11b", not "STAR".
  • Key parameters, not every parameter. Report the ones that affect the result: aligner mismatch settings, read-filtering thresholds, the statistical model, the multiple-testing correction. If everything else was default, say which version's defaults.
  • Database versions matter. Annotation databases, variant effect predictors and structure databases change monthly. Give the release and date.
  • Seeds matter. If a step is stochastic, such as clustering or a random split, report the seed or say where it is recorded.

Avoid the phrase "standard pipeline". It tells the reader nothing and usually hides a choice that mattered.

Write the steps in the order they ran

Methods should follow the flow of the analysis, not the structure of your code repository. A reader should be able to trace raw data to final figure without jumping around.

For each step, a sentence or two is usually enough: what went in, what tool did, what came out. Group related steps under subheadings if the section is long. Keep the level of detail even: do not spend a paragraph on file conversion and one line on the statistical model.

Say what you did, not what the tool does

A common habit is to describe the software's general behaviour: "DESeq2 uses a negative binomial model to test for differential expression." That is background, not methods. The reader wants to know that you used DESeq2 version X, with these design terms, this shrinkage method, and this significance threshold.

Cite the tool's paper once, then describe your use of it. If you changed a default, say so and say why.

Statistics and thresholds belong here

State the test, the unit of replication, how multiple testing was handled, and the threshold you used. Say whether the threshold was chosen before or after seeing the data. For differential expression, name the adjustment method. For enrichment, name the background set. For classification or clustering, say how performance was measured.

If you used a model, say how it was validated. For a QSAR or predictive model, the split scheme and applicability domain belong in methods, not only in the results; the details are in validating a QSAR model.

Make the environment reproducible

The strongest methods sections make the environment part of the record. That can mean a container image, a conda environment file, a workflow definition, or a code repository with a release tag or DOI. State which one you used, and where it can be found.

You do not need a full software-engineering setup for every paper, but you do need enough that a reader can reconstruct the versions. If a workflow manager was used, name it and give the version. If the code is on GitHub, give the repository and the commit or release used for the paper. The practical side is covered in reproducible analysis for small labs.

Cover the parts reviewers ask about

Certain details come up again and again in review. It is worth checking each one before submission.

  • Quality control. What thresholds, which tool, what was discarded.
  • Alignment and quantification. Aligner, reference, annotation, strandedness.
  • Normalisation and batch effects. Method, covariates, whether batches were confounded with groups.
  • Filtering. Genes or variants removed, and the rule used.
  • Multiple testing. Correction method and family size.
  • Software environment. Versions, containers, repository links.
  • Data availability. Accessions and any access restrictions.

For sequencing work, the NGS data analysis pipeline and the RNA-seq workflow give the steps that usually need describing.

A paragraph that works

Here is the shape of a methods paragraph, using generic placeholders rather than invented specifics:

Paired-end reads were trimmed with [tool, version] using a minimum quality of [value] and a minimum length of [value]. Reads were aligned to [assembly, annotation release] with [aligner, version] and [key settings]. Counts were summarised per gene with [tool, version]. Differential expression was tested with [tool, version] using a design of [terms], with [shrinkage method] and Benjamini–Hochberg correction; genes with adjusted p below [value] and absolute log2 fold change above [value] were reported. The analysis was run in [environment or container], and the code is available at [repository, release].

Every bracket is a decision. If you cannot fill one in, that is the gap a reviewer will find.

Common mistakes

  1. Missing versions. The most common and most damaging omission.
  2. "Default settings" when defaults changed between versions or when a non-default setting was used.
  3. No database release. Annotation and variant databases are not static.
  4. Mixing methods and results. Thresholds chosen after seeing the data should be described honestly, not presented as pre-specified.
  5. Describing the tool instead of your use of it. This fills space without adding repeatability.
  6. No data availability statement. Accessions and restrictions belong with the methods or in a dedicated section.
  7. Inconsistent sample counts. The number of samples in the methods must match the figures.

Key points

  • Describe data, steps, tools and decision rules, in the order they happened.
  • Give tool versions, key parameters and database releases, not just names.
  • State what was excluded and why.
  • Put statistical tests, thresholds and multiple-testing corrections in methods.
  • Record the computational environment and where the code can be found.
  • Cite the tool paper once and then describe your specific use.
  • Check sample counts and accessions against the rest of the paper.

When to ask for help

If you have the analysis but the methods section is thin, or if a reviewer has asked for details you no longer have, we can reconstruct the workflow, document versions and parameters, and write the computational methods with you. You can order an analysis. For figure preparation, see making clear, colour-blind-safe figures.

Sources

When to ask for help. If your data or design do not fit a tutorial, order an analysis and we will reply with a fixed price.

Written by the Solagene team for research and education. Found an error? Tell us and we will correct it.