Class ExpressionCounterUtils
java.lang.Object
fr.ens.biologie.genomique.eoulsan.modules.expression.ExpressionCounterUtils
This class define some glue methods between Eoulsan and Kenetre.
- Since:
- 2.6
- Author:
- Laurent Jourdren
-
Method Summary
Modifier and TypeMethodDescriptioncount(fr.ens.biologie.genomique.kenetre.bio.expressioncounter.ExpressionCounter counter, DataFile samFile, fr.ens.biologie.genomique.kenetre.util.ReporterIncrementer reporter, String counterGroup) Count the the features.static voidinit(fr.ens.biologie.genomique.kenetre.bio.expressioncounter.ExpressionCounter counter, DataFile genomeDescFile, DataFile annotationFile, boolean gtfFormat) Initialize the counter.static voidinit(fr.ens.biologie.genomique.kenetre.bio.expressioncounter.ExpressionCounter counter, fr.ens.biologie.genomique.kenetre.bio.GenomeDescription genomeDesc, DataFile annotationFile, boolean gtfFormat) Initialize the counter.
-
Method Details
-
init
public static void init(fr.ens.biologie.genomique.kenetre.bio.expressioncounter.ExpressionCounter counter, fr.ens.biologie.genomique.kenetre.bio.GenomeDescription genomeDesc, DataFile annotationFile, boolean gtfFormat) throws IOException, fr.ens.biologie.genomique.kenetre.KenetreException Initialize the counter.- Parameters:
counter- the countergenomeDesc- genome descriptionannotationFile- annotation filegtfFormat- true if the input format is in GTF format- Throws:
fr.ens.biologie.genomique.kenetre.KenetreException- if an error occurs while initialize the counterIOException- if an error occurs while reading input files
-
init
public static void init(fr.ens.biologie.genomique.kenetre.bio.expressioncounter.ExpressionCounter counter, DataFile genomeDescFile, DataFile annotationFile, boolean gtfFormat) throws IOException, fr.ens.biologie.genomique.kenetre.KenetreException Initialize the counter.- Parameters:
counter- the countergenomeDescFile- genome description fileannotationFile- annotation filegtfFormat- true if the input format is in GTF format- Throws:
fr.ens.biologie.genomique.kenetre.KenetreException- if an error occurs while initialize the counterIOException- if an error occurs while reading input files
-
count
public static Map<String,Integer> count(fr.ens.biologie.genomique.kenetre.bio.expressioncounter.ExpressionCounter counter, DataFile samFile, fr.ens.biologie.genomique.kenetre.util.ReporterIncrementer reporter, String counterGroup) throws IOException, fr.ens.biologie.genomique.kenetre.KenetreException Count the the features.- Parameters:
counter- the countersamFile- SAM filereporter- the reportercounterGroup- the counter group of the reporter- Returns:
- a map with the counts
- Throws:
fr.ens.biologie.genomique.kenetre.KenetreException- if an error occurs while countingIOException- if an error occurs while reading the input filefr.ens.biologie.genomique.kenetre.KenetreException- if an errors occurs while counting
-