Class FastQScreenMappedPercentSampleTest
java.lang.Object
fr.ens.biologie.genomique.aozan.tests.sample.AbstractSampleTest
fr.ens.biologie.genomique.aozan.tests.sample.AbstractSimpleSampleTest
fr.ens.biologie.genomique.aozan.tests.sample.FastQScreenMappedPercentSampleTest
- All Implemented Interfaces:
AozanTest,SampleTest
The class add in the qc report html values from FastqScreen for each sample
and for each reference genomes. The list of references genomes contains
default references genomes defined in aozan configuration file. It add the
genomes sample for the run included in Bcl2fastq samplesheet file, only if it
can be used for mapping with bowtie. The alias genomes file make the
correspondence between the genome sample and the reference genome used with
bowtie, if it exists. The class retrieve the percent of reads mapped on each
reference genomes.
- Since:
- 1.0
- Author:
- Sandrine Perrin
-
Constructor Summary
ConstructorsConstructorDescriptionPublic constructor.FastQScreenMappedPercentSampleTest(String genome, boolean isGenomeContamination) Public constructor, specific for a reference genome. -
Method Summary
Modifier and TypeMethodDescriptionconfigure(TestConfiguration conf) Configure the test.Get the name of the collectors required for the test.getKey(int read, int readSample, int sampleId, int lane, boolean undetermined) Get the the key in the RunData object for the value to test.Get name of reference genome.Class<?>Get the type of the value.booleanTest if the value is a percent.protected inttransformScore(int score, RunData data, int read, int readSample, int sampleId) Transform the score : if genome of sample is the same as reference genome.Methods inherited from class fr.ens.biologie.genomique.aozan.tests.sample.AbstractSimpleSampleTest
test, transformValueMethods inherited from class fr.ens.biologie.genomique.aozan.tests.sample.AbstractSampleTest
getColumnName, getDescription, getName, getUnit, init
-
Constructor Details
-
FastQScreenMappedPercentSampleTest
public FastQScreenMappedPercentSampleTest()Public constructor. -
FastQScreenMappedPercentSampleTest
Public constructor, specific for a reference genome.- Parameters:
genome- name of reference genome
-
-
Method Details
-
getCollectorsNamesRequiered
Description copied from interface:AozanTestGet the name of the collectors required for the test.- Returns:
- a list of String with the name of the required collectors
-
getKey
Description copied from class:AbstractSimpleSampleTestGet the the key in the RunData object for the value to test.- Specified by:
getKeyin classAbstractSimpleSampleTest- Parameters:
read- index of the readreadSample- index of read without indexed readssampleId- the id of the samplelane- sample laneundetermined- true if the sample is an undetermined sample- Returns:
- a String with the required key
-
getValueType
Description copied from class:AbstractSimpleSampleTestGet the type of the value.- Specified by:
getValueTypein classAbstractSimpleSampleTest- Returns:
- a Class object with the type
-
transformScore
Transform the score : if genome of sample is the same as reference genome. then the score is reverse for change the color in QC report- Overrides:
transformScorein classAbstractSimpleSampleTest- Parameters:
score- the score to transformdata- run dataread- index of readreadSample- index of read without indexed readssampleId- sample id- Returns:
- the transformed score
-
configure
Description copied from interface:AozanTestConfigure the test.- Specified by:
configurein interfaceAozanTest- Overrides:
configurein classAbstractSimpleSampleTest- Parameters:
conf- the test configuration- Returns:
- list of Aozan tests
- Throws:
AozanException
-
isValuePercent
public boolean isValuePercent()Description copied from class:AbstractSimpleSampleTestTest if the value is a percent.- Overrides:
isValuePercentin classAbstractSimpleSampleTest- Returns:
- true if the value is a percent
-
getNameGenome
Get name of reference genome.- Returns:
- name of reference genome
-