@Immutable public final class Path extends Gfa1Record
| Constructor and Description |
|---|
Path(String name,
List<Reference> segments,
List<String> overlaps,
Map<String,Tag> tags)
Create a new path GFA 1.0 record.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getName()
Return the name for this path.
|
List<String> |
getOverlaps()
Return an immutable list of overlaps in cigar format for this path,
or null if none exist.
|
Optional<List<String>> |
getOverlapsOpt()
Return an optional wrapping the list of overlaps in cigar format for this path.
|
List<Reference> |
getSegments()
Return an immutable list of segment references for this path.
|
int |
hashCode() |
boolean |
hasOverlaps()
Return true if this path has any overlaps.
|
String |
toString() |
static Path |
valueOf(String value)
Parse a path GFA 1.0 record from the specified value.
|
containsTagKey, getTagByteArray, getTagByteArrayOpt, getTagBytes, getTagBytesOpt, getTagCharacter, getTagCharacterOpt, getTagFloat, getTagFloatOpt, getTagFloats, getTagFloatsOpt, getTagInteger, getTagIntegerOpt, getTagIntegers, getTagIntegersOpt, getTags, getTagString, getTagStringOptpublic Path(String name, List<Reference> segments, @Nullable List<String> overlaps, Map<String,Tag> tags)
name - name, must not be nullsegments - list of segment references, must not be nulloverlaps - list of overlaps, if anytags - tags, must not be nullpublic String getName()
public List<Reference> getSegments()
public boolean hasOverlaps()
public List<String> getOverlaps()
public Optional<List<String>> getOverlapsOpt()
Copyright © 2013–2020 dishevelled.org. All rights reserved.