> For the complete documentation index, see [llms.txt](https://knowledge.illumina.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledge.illumina.com/software/general/software-general-reference_material-list/000002035.md).

# How to concatenate the FASTQ files from different lanes

The following are options to concatenate the FASTQ files from different lanes of the same sequencing run on the NextSeq 500/550, NextSeq 1000/2000, HiSeq series, NovaSeq 6000 and NovaSeq X series instruments.

**1. BaseSpace Sequence Hub**

[FASTQ Toolkit app](https://www.illumina.com/products/by-type/informatics-products/basespace-sequence-hub/apps/fastq-toolkit.html) and [DRAGEN FASTQ Toolkit app](https://www.illumina.com/products/by-type/informatics-products/basespace-sequence-hub/apps/dragen-fastq-toolkit.html) can be used to merge lane FASTQ files.

After selecting the input Biosamples and an Output Project, launch the app with default values for the settings in order to concatenate the lane FASTQ files. This results in the lane merged FASTQ files being aggregated within the original Biosamples. To prevent this automatic data aggregation, add a suffix with the 'Add a suffix to the output Biosample name(s)' setting; this outputs the merged FASTQ files to new Biosamples. More information about BaseSpace automatic data aggregation can be found [here](https://help.basespace.illumina.com/automate/automatic-data-aggregation).

This app does require a small amount of iCredits due to the processing time.

**2. bcl2fastq2/ BCL Convert conversion software**

To automatically concatenate FASTQ files, add the following option to bcl2fastq command line.

`--no-lane-splitting`

This is described on page 15 of the [bcl2fastq2 Conversion Software v2.20 Software Guide](https://support.illumina.com/sequencing/sequencing_software/bcl2fastq-conversion-software/documentation.html).

When BCL Convert is used for demultiplexing, adding the setting 'NoLaneSplitting,true' results in the creation of lane-merged FASTQ files. This is described in the [BCL Convert online help page](https://support-docs.illumina.com/SW/BCL_Convert/Content/SW/BCLConvert/SampleSheets_swBCL.htm).

Standalone and cloud versions of BCL Convert (BaseSpace) allow use of v1 and v2 sample sheets.

**3.** **Concatenate files after demultiplexing**

**3.1 Merge lane files using Window command prompt**

Open Command Prompt, navigate to the folder containing FASTQ files (drag and drop the folder into the Command Prompt window) and type the following command.

`copy /b *.fastq.gz Merged.fastq.gz`

**Note:** /b is required to merge gzipped files, as it tells the copy program the files are binary and not plain-text.

**3.2 Merge lane file using Linux**

Use the following command.

`cat file1.fastq file2.fastq > mergedfile.fastq`

The standard `cat` command works fine, even in the gzipped state.

**Note**: Be aware that merged files, made with either method, cannot be uploaded to BaseSpace through the web file importer. To upload merged FASTQ files, use the BaseSpace CLI tool. For further information, search for Knowledge Base article [How to upload and download FASTQ files to BaseSpace with BaseSpace CLI.](https://knowledge.illumina.com/software/basespace-cli/software-basespace-cli-reference_material-list/000001138)

\
\
\ <br>

|                                                                                                                                                                                                                                                                                                                                                                 |
| :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| *For any feedback or questions regarding this article (Illumina Knowledge Article #2035), contact Illumina Technical Support* [*techsupport@illumina.com*](mailto:techsupport@illumina.com?subject=Question%2FFeedback%20Regarding%20Illumina%20Knowledge%20Article%20#000002035%20-%20Software%20\&body=Dear%20Illumina%20Technical%20Support,%0D%0A%0D%0A)*.* |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://knowledge.illumina.com/software/general/software-general-reference_material-list/000002035.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
