Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change the partial members of genomix-data, genomix-hyracks for adapting ray-style #60

Closed
wants to merge 69 commits into from
Closed
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
cb22472
add mate0 and mate1 readSequence
Nov 10, 2013
ec2081e
make up related functions in readHeadSet
Nov 10, 2013
1661432
comment the genomix-data temporally, will recover later
Nov 10, 2013
9c26dc2
use VKmerList to replace the EdgeMap
Nov 10, 2013
d672c7a
change edgeType in Node
Nov 10, 2013
9db851c
change graph building to adapt new ray style
Nov 10, 2013
0b81fcc
tweak graphviz
Nov 10, 2013
d417ccf
change function name of node from getEdgeMap to getEdgeList
Nov 10, 2013
547603f
Merge commit '1b7005d5a2f185c29ea677f4246a4889d805fa36' into nanzhang…
Nov 12, 2013
8522c18
Merge branch 'genomix/fullstack_genomix' into nanzhang/ray-genomix
Nov 13, 2013
a8e0e32
change this/thatSequence, and bitField for not writing any null members
Nov 14, 2013
90ebdfe
change SetAsCopy() and getLengthInBytes() to be consistent with writi…
Nov 14, 2013
9affc37
remove contain(Kmer kmer) and recover contain(VkmerList kmer)
Nov 14, 2013
87d90dd
change partial member function to be consistent with ReadHeadInfo
Nov 14, 2013
59346bc
get mateId in a indirect way, and consider the single long end read
Nov 14, 2013
c90a6ee
Merge branch 'genomix/fullstack_genomix' into nanzhang/ray-genomix
Nov 14, 2013
1033803
change setAsCopy() to use getThisReadSequence() and getThatReadSequen…
Nov 15, 2013
30f7255
use getKmerLetterLength() instead of getKmerBytesLength()
Nov 15, 2013
ce34294
check toString() in readHeadInfo
Nov 15, 2013
5f1d6ae
change getEdgeList() to getEdgeMap() in readKeyValueParser
Nov 15, 2013
8a6a000
small teaks and prepare for test new graph building
Nov 16, 2013
524f258
Merge branch 'genomix/fullstack_genomix' into nanzhang/ray-genomix
Nov 16, 2013
a4cadb0
recover it VkmerList initially and prepare for refining it
Nov 16, 2013
7887496
a tweak
Nov 16, 2013
cbb120f
Merge branch 'nanzhang/genomix_main_branch' into nanzhang/ray-genomix
Nov 18, 2013
0995d14
Merge branch 'genomix/fullstack_genomix' into nanzhang/ray-genomix
Nov 20, 2013
f975ac2
fix new instance bug in readHeadInfo
Nov 20, 2013
e21ceea
use getThatReadSeq instead of getThisReadSeq
Nov 20, 2013
97b5ce2
fix bug in readFiled() and getreadSeq(), and getMateSeq()
Nov 20, 2013
b227f65
change name from getThatReadSeq() to getMateReadSeq()
Nov 20, 2013
30beef5
change name from thatReadSeq to mateReadSeq
Nov 20, 2013
17886d9
fix the bug for supporting single read
Nov 20, 2013
cb84316
clean legacy code
Nov 20, 2013
4ab3820
remove uesless code
Nov 20, 2013
c4ead19
rm system.out.println()
Nov 20, 2013
cce134f
complete hyracks test
Nov 20, 2013
9d9eec7
fix the bug for forgetting add the byte length 1 in getLength() due t…
Nov 21, 2013
7b25a64
change genomix-hadoop to be consistent with our new genomix-data
Nov 21, 2013
ed6733c
hadoop test passed!
Nov 21, 2013
8d45898
change the name of readHeadSet
Nov 21, 2013
85539b8
change graphstatics to remove the readId in it
Nov 21, 2013
40846bc
genomix-hyracks test passed!
Nov 21, 2013
14d7781
prepare KMP algorithm
Nov 21, 2013
16523c3
complete the KMP test
Nov 21, 2013
9587903
complete fast detect sub Vkmer using KMP, not complete test
Nov 21, 2013
cc8838d
complete find sub-vkmer function’s test
Nov 21, 2013
3c7df0a
add readHeadInfo(data[] offset); remove asLong()
Nov 22, 2013
4acc66b
add readHeadInfo(data[] offset) and remove asLong()
Nov 22, 2013
7d604bc
remove updateEdgeRead()
Nov 22, 2013
67add02
modify the typo
Nov 22, 2013
12b7a7a
remove conflict for genomix-pregelix
Nov 22, 2013
603e47a
remove active_Field ’s thisReadSequence field
Nov 22, 2013
2566c8d
refactor readHeadInfo
Nov 22, 2013
f7b170b
use getMateReadSeq() in set() for readHeadInfo
Nov 22, 2013
42a5bb2
fix the bug for setting null to thisReadSeq, and add setUUID()
Nov 22, 2013
246c623
finish genomix-hyracks test
Nov 22, 2013
6763566
add exception
Nov 22, 2013
e5099ac
remove all code related to parsing filename
Nov 23, 2013
cd7c12d
remove all code related to parsing file name in genomix-hadoop
Nov 23, 2013
d1e1e4a
remove KMP to create a separate branch instead
Nov 23, 2013
8cae514
factor out edgeMap code in favor of VKmerList; remove SplitRepeat
jakebiesinger Nov 23, 2013
9e2fdd6
check both msg and vertex in symmetry checker
jakebiesinger Nov 25, 2013
2af7a94
add some error checking; remove unused functions
jakebiesinger Nov 25, 2013
4c61c2c
rename all `edgeMap`s and `edgeList`s to `edges`
jakebiesinger Nov 25, 2013
d96e25b
Merge remote-tracking branch 'origin/nanzhang/ray-genomix' into wbies…
jakebiesinger Dec 3, 2013
3048f59
Merge remote-tracking branch 'origin/genomix/fullstack_genomix' into …
jakebiesinger Dec 3, 2013
e4ec721
fix to support non-default pregelix cc http ports
jakebiesinger Dec 4, 2013
79664c2
Merge branch 'genomix/fullstack_genomix' into wbiesing/ray-genomix-re…
jakebiesinger Dec 4, 2013
d3e3869
Merge pull request #71 from uci-cbcl/wbiesing/ray-genomix-refactor
jakebiesinger Dec 4, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -149,37 +149,37 @@ public static byte[] convertGraphToImg(JobConf conf, String srcDir, String destD
public static String convertEdgeToGraph(String outputNode, Node value, GRAPH_TYPE graphType) {
String outputEdge = "";
for (EDGETYPE et : EDGETYPE.values()) {
for (Entry<VKmer, ReadIdSet> e : value.getEdgeMap(et).entrySet()) {
for (VKmer e : value.getEdgeList(et)) {
String destNode = "";
switch (graphType) {
case UNDIRECTED_GRAPH_WITHOUT_LABELS:
if (map.containsKey(e.getKey().toString()))
destNode += map.get(e.getKey().toString());
if (map.containsKey(e.toString()))
destNode += map.get(e.toString());
else {
count++;
map.put(e.getKey().toString(), count);
map.put(e.toString(), count);
destNode += count;
}
outputEdge += outputNode + " -> " + destNode + "[dir=none]\n";
break;
case DIRECTED_GRAPH_WITH_SIMPLELABEL_AND_EDGETYPE:
if (map.containsKey(e.getKey().toString()))
destNode += map.get(e.getKey().toString());
if (map.containsKey(e.toString()))
destNode += map.get(e.toString());
else {
count++;
map.put(e.getKey().toString(), count);
map.put(e.toString(), count);
destNode += count;
}
outputEdge += outputNode + " -> " + destNode + "[color = \"" + getColor(et) + "\" label =\""
+ et + "\"]\n";
break;
case DIRECTED_GRAPH_WITH_KMERS_AND_EDGETYPE:
outputEdge += outputNode + " -> " + e.getKey().toString() + "[color = \"" + getColor(et)
outputEdge += outputNode + " -> " + e.toString() + "[color = \"" + getColor(et)
+ "\" label =\"" + et + "\"]\n";
break;
case DIRECTED_GRAPH_WITH_ALLDETAILS:
outputEdge += outputNode + " -> " + e.getKey().toString() + "[color = \"" + getColor(et)
+ "\" label =\"" + et + ": " + e.getValue() + "\"]\n";
outputEdge += outputNode + " -> " + e.toString() + "[color = \"" + getColor(et)
+ "\" label =\"" + et + "\"]\n";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@anbangx since there are no readids on the edges in this version, we'll have to reconsider what DIRECTED_GRAPH_WITH_ALLDETAILS now means. Perhaps it should print the internalKmer instead of the key?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jakebiesinger WITH_ALLDETAILS includes all the other fields inside the node, this key is only for edge connection.

break;
default:
throw new IllegalStateException("Invalid input Graph Type!!!");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,22 +67,22 @@ public static class NeighborInfo {
public ReadIdSet readIds;
public VKmer kmer;

public NeighborInfo(EDGETYPE edgeType, VKmer kmer, ReadIdSet readIds) {
set(edgeType, kmer, readIds);
public NeighborInfo(EDGETYPE edgeType, VKmer kmer) {
set(edgeType, kmer);
}

public NeighborInfo(EDGETYPE edgeType, Entry<VKmer, ReadIdSet> edge) {
set(edgeType, edge.getKey(), edge.getValue());
}
// public NeighborInfo(EDGETYPE edgeType, VKmer edge) {
// set(edgeType, edge.getKey(), edge.getValue());
// }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just remove these... no point in having them commented out in the code.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done


public void set(EDGETYPE edgeType, Entry<VKmer, ReadIdSet> edge) {
set(edgeType, edge.getKey(), edge.getValue());
}
// public void set(EDGETYPE edgeType, Entry<VKmer, ReadIdSet> edge) {
// set(edgeType, edge.getKey(), edge.getValue());
// }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove commented out stuff

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done


public void set(EDGETYPE edgeType, VKmer kmer, ReadIdSet readIds) {
public void set(EDGETYPE edgeType, VKmer kmer) {
this.et = edgeType;
this.kmer = kmer;
this.readIds = readIds;
// this.readIds = readIds;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove commented out stuff

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

}

public String toString() {
Expand All @@ -96,9 +96,9 @@ public String toString() {

public static class NeighborsInfo implements Iterable<NeighborInfo> {
public final EDGETYPE et;
public final EdgeMap edges;
public final VKmerList edges;

public NeighborsInfo(EDGETYPE edgeType, EdgeMap edgeList) {
public NeighborsInfo(EDGETYPE edgeType, VKmerList edgeList) {
et = edgeType;
edges = edgeList;
}
Expand All @@ -107,7 +107,7 @@ public NeighborsInfo(EDGETYPE edgeType, EdgeMap edgeList) {
public Iterator<NeighborInfo> iterator() {
return new Iterator<NeighborInfo>() {

private Iterator<Entry<VKmer, ReadIdSet>> it = edges.entrySet().iterator();
private Iterator<VKmer> it = edges.iterator();

private NeighborInfo info = null;

Expand Down Expand Up @@ -138,7 +138,7 @@ public void remove() {

private static final int SIZE_FLOAT = 4;

private EdgeMap[] edges = { null, null, null, null };
private VKmerList[] edges = { null, null, null, null };

private ReadHeadSet unflippedReadIds; // first internalKmer in read
private ReadHeadSet flippedReadIds; // first internalKmer in read (but
Expand All @@ -156,7 +156,7 @@ public void remove() {
public Node() {

for (EDGETYPE e : EDGETYPE.values()) {
edges[e.get()] = new EdgeMap();
edges[e.get()] = new VKmerList();
}
unflippedReadIds = new ReadHeadSet();
flippedReadIds = new ReadHeadSet();
Expand All @@ -169,7 +169,7 @@ public Node() {
// this.stepCount = 0;
}

public Node(EdgeMap[] edges, ReadHeadSet unflippedReadIds, ReadHeadSet flippedReadIds, VKmer kmer, float coverage) {
public Node(VKmerList[] edges, ReadHeadSet unflippedReadIds, ReadHeadSet flippedReadIds, VKmer kmer, float coverage) {
this();
setAsCopy(edges, unflippedReadIds, flippedReadIds, kmer, coverage);
}
Expand All @@ -194,7 +194,7 @@ public void setAsCopy(Node node) {
setAsCopy(node.edges, node.unflippedReadIds, node.flippedReadIds, node.internalKmer, node.averageCoverage);
}

public void setAsCopy(EdgeMap[] edges, ReadHeadSet unflippedReadIds, ReadHeadSet flippedReadIds, VKmer kmer,
public void setAsCopy(VKmerList[] edges, ReadHeadSet unflippedReadIds, ReadHeadSet flippedReadIds, VKmer kmer,
float coverage) {
for (EDGETYPE e : EDGETYPE.values()) {
this.edges[e.get()].setAsCopy(edges[e.get()]);
Expand All @@ -209,7 +209,7 @@ public void setAsCopy(EdgeMap[] edges, ReadHeadSet unflippedReadIds, ReadHeadSet

public void reset() {
for (EDGETYPE e : EDGETYPE.values()) {
edges[e.get()].clear();
edges[e.get()].reset();
}
unflippedReadIds.clear();
flippedReadIds.clear();
Expand All @@ -236,7 +236,7 @@ public EDGETYPE getNeighborEdgeType(DIR direction) {
"getEdgetypeFromDir is used on the case, in which the vertex has and only has one EDGETYPE!");
EnumSet<EDGETYPE> ets = direction.edgeTypes();
for (EDGETYPE et : ets) {
if (getEdgeMap(et).size() > 0)
if (getEdgeList(et).size() > 0)
return et;
}
throw new IllegalStateException("Programmer error: we shouldn't get here... Degree is 1 in " + direction
Expand All @@ -251,8 +251,8 @@ public NeighborInfo getSingleNeighbor(DIR direction) {
return null;
}
for (EDGETYPE et : direction.edgeTypes()) {
if (getEdgeMap(et).size() > 0) {
return new NeighborInfo(et, getEdgeMap(et).firstEntry());
if (getEdgeList(et).size() > 0) {
return new NeighborInfo(et, getEdgeList(et).getPosition(0));
}
}
throw new IllegalStateException("Programmer error!!!");
Expand All @@ -262,24 +262,24 @@ public NeighborInfo getSingleNeighbor(DIR direction) {
* Get this node's edgeType and edgeList in this given edgeType. Return null if there is no neighbor
*/
public NeighborsInfo getNeighborsInfo(EDGETYPE et) {
if (getEdgeMap(et).size() == 0)
if (getEdgeList(et).size() == 0)
return null;
return new NeighborsInfo(et, getEdgeMap(et));
return new NeighborsInfo(et, getEdgeList(et));
}

public EdgeMap getEdgeMap(EDGETYPE edgeType) {
public VKmerList getEdgeList(EDGETYPE edgeType) {
return edges[edgeType.get()];
}

public void setEdgeMap(EDGETYPE edgeType, EdgeMap edgeMap) {
public void setEdgeMap(EDGETYPE edgeType, VKmerList edgeMap) {
this.edges[edgeType.get()].setAsCopy(edgeMap);
}

public EdgeMap[] getEdges() {
public VKmerList[] getEdges() {
return edges;
}

public void setEdges(EdgeMap[] edges) {
public void setEdges(VKmerList[] edges) {
this.edges = edges;
}

Expand Down Expand Up @@ -341,7 +341,7 @@ public void setFlippedReadIds(ReadHeadSet flippedReadIds) {
public int getSerializedLength() {
int length = 0;
for (EDGETYPE e : EnumSet.allOf(EDGETYPE.class)) {
length += edges[e.get()].getLengthInBytes();
length += edges[e.get()].getLength();
}
length += unflippedReadIds.getLengthInBytes();
length += flippedReadIds.getLengthInBytes();
Expand All @@ -364,7 +364,7 @@ public void setAsCopy(byte[] data, int offset) {
int curOffset = offset;
for (EDGETYPE e : EnumSet.allOf(EDGETYPE.class)) {
edges[e.get()].setAsCopy(data, curOffset);
curOffset += edges[e.get()].getLengthInBytes();
curOffset += edges[e.get()].getLength();
}
unflippedReadIds.setAsCopy(data, curOffset);
curOffset += unflippedReadIds.getLengthInBytes();
Expand All @@ -379,7 +379,7 @@ public void setAsReference(byte[] data, int offset) {
int curOffset = offset;
for (EDGETYPE e : EnumSet.allOf(EDGETYPE.class)) {
edges[e.get()].setAsReference(data, curOffset);
curOffset += edges[e.get()].getLengthInBytes();
curOffset += edges[e.get()].getLength();
}
unflippedReadIds.setAsCopy(data, curOffset);
curOffset += unflippedReadIds.getLengthInBytes();
Expand Down Expand Up @@ -537,11 +537,11 @@ protected void addUnflippedAndFlippedReadIds(boolean flip, final Node other) {
// stream theirs in, adjusting to the new total length
for (ReadHeadInfo p : other.unflippedReadIds) {
unflippedReadIds.add(p.getMateId(), p.getReadId(),
(int) ((p.getOffset() + 1) * lengthFactor - lengthFactor));
(int) ((p.getOffset() + 1) * lengthFactor - lengthFactor), p.getReadSequenceSameWithMateId(), p.getReadSequenceDiffWithMateId());
}
for (ReadHeadInfo p : other.flippedReadIds) {
flippedReadIds.add(p.getMateId(), p.getReadId(),
(int) ((p.getOffset() + 1) * lengthFactor - lengthFactor));
(int) ((p.getOffset() + 1) * lengthFactor - lengthFactor), p.getReadSequenceSameWithMateId(), p.getReadSequenceDiffWithMateId());
}
} else {
// int newOtherOffset = (int) ((otherLength - 1) * lengthFactor);
Expand All @@ -550,12 +550,12 @@ protected void addUnflippedAndFlippedReadIds(boolean flip, final Node other) {
for (ReadHeadInfo p : other.unflippedReadIds) {
newPOffset = otherLength - 1 - p.getOffset();
flippedReadIds
.add(p.getMateId(), p.getReadId(), (int) ((newPOffset + 1) * lengthFactor - lengthFactor));
.add(p.getMateId(), p.getReadId(), (int) ((newPOffset + 1) * lengthFactor - lengthFactor), p.getReadSequenceSameWithMateId(), p.getReadSequenceDiffWithMateId());
}
for (ReadHeadInfo p : other.flippedReadIds) {
newPOffset = otherLength - 1 - p.getOffset();
unflippedReadIds.add(p.getMateId(), p.getReadId(),
(int) ((newPOffset + 1) * lengthFactor - lengthFactor));
(int) ((newPOffset + 1) * lengthFactor - lengthFactor), p.getReadSequenceSameWithMateId(), p.getReadSequenceDiffWithMateId());
}
}
}
Expand Down Expand Up @@ -641,50 +641,50 @@ protected void mergeUnflippedAndFlippedReadIDs(EDGETYPE edgeType, Node other) {
newOtherOffset = thisLength - K + 1;
// stream theirs in with my offset
for (ReadHeadInfo p : other.unflippedReadIds) {
unflippedReadIds.add(p.getMateId(), p.getReadId(), newOtherOffset + p.getOffset());
unflippedReadIds.add(p.getMateId(), p.getReadId(), newOtherOffset + p.getOffset(), p.getReadSequenceSameWithMateId(), p.getReadSequenceDiffWithMateId());
}
for (ReadHeadInfo p : other.flippedReadIds) {
flippedReadIds.add(p.getMateId(), p.getReadId(), newOtherOffset + p.getOffset());
flippedReadIds.add(p.getMateId(), p.getReadId(), newOtherOffset + p.getOffset(), p.getReadSequenceSameWithMateId(), p.getReadSequenceDiffWithMateId());
}
break;
case FR:
newOtherOffset = thisLength - K + otherLength;
// stream theirs in, offset and flipped
for (ReadHeadInfo p : other.unflippedReadIds) {
flippedReadIds.add(p.getMateId(), p.getReadId(), newOtherOffset - p.getOffset());
flippedReadIds.add(p.getMateId(), p.getReadId(), newOtherOffset - p.getOffset(), p.getReadSequenceSameWithMateId(), p.getReadSequenceDiffWithMateId());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about a copyWithNewOffset(ReadHeadInfo p, int offset)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, what's mean of copyWithNewOffset()? you mean add a new function?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah. the set() function here is awkward since it takes so many options.

}
for (ReadHeadInfo p : other.flippedReadIds) {
unflippedReadIds.add(p.getMateId(), p.getReadId(), newOtherOffset - p.getOffset());
unflippedReadIds.add(p.getMateId(), p.getReadId(), newOtherOffset - p.getOffset(), p.getReadSequenceSameWithMateId(), p.getReadSequenceDiffWithMateId());
}
break;
case RF:
newThisOffset = otherLength - K + 1;
newOtherOffset = otherLength - 1;
// shift my offsets (other is prepended)
for (ReadHeadInfo p : unflippedReadIds) {
p.set(p.getMateId(), p.getReadId(), newThisOffset + p.getOffset());
p.set(p.getMateId(), p.getReadId(), newThisOffset + p.getOffset(), p.getReadSequenceSameWithMateId(), p.getReadSequenceDiffWithMateId());
}
for (ReadHeadInfo p : flippedReadIds) {
p.set(p.getMateId(), p.getReadId(), newThisOffset + p.getOffset());
p.set(p.getMateId(), p.getReadId(), newThisOffset + p.getOffset(), p.getReadSequenceSameWithMateId(), p.getReadSequenceDiffWithMateId());
}
// System.out.println(startReads.size());
// System.out.println(endReads.size());
//stream theirs in, not offset (they are first now) but flipped
for (ReadHeadInfo p : other.unflippedReadIds) {
flippedReadIds.add(p.getMateId(), p.getReadId(), newOtherOffset - p.getOffset());
flippedReadIds.add(p.getMateId(), p.getReadId(), newOtherOffset - p.getOffset(), p.getReadSequenceSameWithMateId(), p.getReadSequenceDiffWithMateId());
}
for (ReadHeadInfo p : other.flippedReadIds) {
unflippedReadIds.add(p.getMateId(), p.getReadId(), newOtherOffset - p.getOffset());
unflippedReadIds.add(p.getMateId(), p.getReadId(), newOtherOffset - p.getOffset(), p.getReadSequenceSameWithMateId(), p.getReadSequenceDiffWithMateId());
}
break;
case RR:
newThisOffset = otherLength - K + 1;
// shift my offsets (other is prepended)
for (ReadHeadInfo p : unflippedReadIds) {
p.set(p.getMateId(), p.getReadId(), newThisOffset + p.getOffset());
p.set(p.getMateId(), p.getReadId(), newThisOffset + p.getOffset(), p.getReadSequenceSameWithMateId(), p.getReadSequenceDiffWithMateId());
}
for (ReadHeadInfo p : flippedReadIds) {
p.set(p.getMateId(), p.getReadId(), newThisOffset + p.getOffset());
p.set(p.getMateId(), p.getReadId(), newThisOffset + p.getOffset(), p.getReadSequenceSameWithMateId(), p.getReadSequenceDiffWithMateId());
}
for (ReadHeadInfo p : other.unflippedReadIds) {
unflippedReadIds.add(p);
Expand All @@ -701,8 +701,8 @@ protected void mergeUnflippedAndFlippedReadIDs(EDGETYPE edgeType, Node other) {
*/
public NeighborInfo findEdge(final VKmer kmer) {
for (EDGETYPE et : EDGETYPE.values()) {
if (edges[et.get()].containsKey(kmer)) {
return new NeighborInfo(et, kmer, edges[et.get()].get(kmer));
if (edges[et.get()].contains(kmer)) {
return new NeighborInfo(et, kmer);
}
}
return null;
Expand Down
Loading