MCPcopy Create free account
hub / github.com/BirolLab/RNA-Bloom / writeShort

Method writeShort

src/rnabloom/RNABloom.java:4132–4152  ·  view source on GitHub ↗
(String seq, float fragMinCov)

Source from the content-addressed store, hash-verified

4130 }
4131
4132 public void writeShort(String seq, float fragMinCov) throws IOException {
4133 boolean isPolya = assemblePolyaTails && polyATailPattern.matcher(seq).matches();
4134
4135 if (fragMinCov == 1) {
4136 if (isPolya) {
4137 shortPolyaSingletonsOut.write(seq);
4138 }
4139 else {
4140 shortSingletonsOut.write(seq);
4141 }
4142 }
4143 else {
4144 int m = getCoverageOrderOfMagnitude(fragMinCov);
4145 if (isPolya) {
4146 shortPolyaFragmentsOut[m].write(seq);
4147 }
4148 else {
4149 shortFragmentsOut[m].write(seq);
4150 }
4151 }
4152 }
4153
4154 public void writeLong(String seq, float fragMinCov) throws IOException {
4155 boolean isPolya = assemblePolyaTails && polyATailPattern.matcher(seq).matches();

Callers 1

runMethod · 0.80

Calls 2

writeMethod · 0.45

Tested by

no test coverage detected