Class DesignBuilder
java.lang.Object
fr.ens.biologie.genomique.eoulsan.design.DesignBuilder
This class allow to easily build Design object from files paths.
- Since:
- 1.0
- Author:
- Laurent Jourdren
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBcl2FastqSamplesheetProject(fr.ens.biologie.genomique.kenetre.illumina.samplesheet.SampleSheet samplesheet, String projectName, File bcl2fastqOutputDir) Add all the sample from a Bclfastq samplesheet.voidaddBcl2FastqSamplesheetProject(fr.ens.biologie.genomique.kenetre.illumina.samplesheet.SampleSheet samplesheet, String projectName, Path bcl2fastqOutputDir) Add all the sample from a Bclfastq samplesheet.voidaddBcl2FastqSamplesheetProject(File samplesheetFile, String projectName) Add all the samples from a Bcl2Fastq samplesheet.voidaddBcl2FastqSamplesheetProject(Path samplesheetFile, String projectName) Add all the samples from a Bcl2Fastq samplesheet.voidAdd a file to the design buildervoidAdd a filename to the design buildervoidAdd filenames to the design buildervoidAdd filenames to the design builderstatic StringdefineSampleSubDirName(String sampleId, String sampleName) Get the sample sub directory.getDesign(boolean pairedEndMode) Create design object.
-
Constructor Details
-
DesignBuilder
public DesignBuilder()Public constructor. -
DesignBuilder
Public constructor.- Parameters:
filenames- filenames to add- Throws:
EoulsanException- if a file to add to the design does not exist or is not handled
-
-
Method Details
-
addFile
Add a file to the design builder- Parameters:
file- file to add- Throws:
EoulsanException- if the file does not exist
-
addFile
Add a filename to the design builder- Parameters:
filename- filename of the file to add- Throws:
EoulsanException- if the file does not exists
-
addFiles
Add filenames to the design builder- Parameters:
filenames- array with the filenames to add- Throws:
EoulsanException- if the file does not exists
-
addFiles
Add filenames to the design builder- Parameters:
filenames- array with the filenames to add- Throws:
EoulsanException- if the file does not exists
-
addBcl2FastqSamplesheetProject
public void addBcl2FastqSamplesheetProject(fr.ens.biologie.genomique.kenetre.illumina.samplesheet.SampleSheet samplesheet, String projectName, File bcl2fastqOutputDir) throws EoulsanException Add all the sample from a Bclfastq samplesheet.- Parameters:
samplesheet- The Bcl2fastq samplesheet objectprojectName- name of the projectbcl2fastqOutputDir- the output directory of Bcl2fastq demultiplexing- Throws:
EoulsanException- if an error occurs while adding the Bcl2fastq samplesheet
-
addBcl2FastqSamplesheetProject
public void addBcl2FastqSamplesheetProject(fr.ens.biologie.genomique.kenetre.illumina.samplesheet.SampleSheet samplesheet, String projectName, Path bcl2fastqOutputDir) throws EoulsanException Add all the sample from a Bclfastq samplesheet.- Parameters:
samplesheet- The Bcl2fastq samplesheet objectprojectName- name of the projectbcl2fastqOutputDir- the output directory of Bcl2fastq demultiplexing- Throws:
EoulsanException- if an error occurs while adding the Bcl2fastq samplesheet
-
addBcl2FastqSamplesheetProject
public void addBcl2FastqSamplesheetProject(File samplesheetFile, String projectName) throws EoulsanException Add all the samples from a Bcl2Fastq samplesheet.- Parameters:
samplesheetFile- the path to the Casava designprojectName- the name of the project- Throws:
EoulsanException- if an error occurs while reading the Casava design
-
addBcl2FastqSamplesheetProject
public void addBcl2FastqSamplesheetProject(Path samplesheetFile, String projectName) throws EoulsanException Add all the samples from a Bcl2Fastq samplesheet.- Parameters:
samplesheetFile- the path to the Casava designprojectName- the name of the project- Throws:
EoulsanException- if an error occurs while reading the Casava design
-
getDesign
Create design object.- Parameters:
pairedEndMode- true if the paired end mode is enabled- Returns:
- a new Design object
- Throws:
EoulsanException- if an error occurs while analyzing input files
-
defineSampleSubDirName
Get the sample sub directory.- Parameters:
sampleId- sample identifiersampleName- sample name- Returns:
- the sample sub directory or an empty string
-