Skip to content

Commit

Permalink
actually revert
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Aug 11, 2023
1 parent 9c3cae1 commit 4937323
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions askomics/libaskomics/BedFile.py
Expand Up @@ -299,12 +299,14 @@ def generate_rdf_content(self):
self.graph_chunk.add((begin, self.faldo.position, faldo_start))

self.graph_chunk.add((end, rdflib.RDF.type, self.faldo.ExactPosition))
self.graph_chunk.add((end, self.faldo.end, faldo_end))
self.graph_chunk.add((end, self.faldo.position, faldo_end))

self.graph_chunk.add((begin, self.faldo.reference, faldo_reference))
self.graph_chunk.add((end, self.faldo.reference, faldo_reference))

if faldo_strand:
self.graph_chunk.add((begin, self.faldo.strand, faldo_strand))
self.graph_chunk.add((begin, rdflib.RDF.type, faldo_strand))
self.graph_chunk.add((end, rdflib.RDF.type, faldo_strand))

# Shortcut triple for faldo queries
self.graph_chunk.add((entity, self.namespace_internal["faldoBegin"], faldo_start))
Expand Down
2 changes: 1 addition & 1 deletion askomics/libaskomics/File.py
Expand Up @@ -464,7 +464,7 @@ def get_reference_strand_uri(self, reference, strand, block=None):
self.faldo.ReverseStrandPosition: "ReverseStrand",
self.faldo.BothStrandPosition: "BothStrand"
}
if block is not None:
if block is None:
if strand == self.faldo.BothStrandPosition:
return [self.rdfize(self.format_uri("{}_s{}s".format(reference, dstrand))) for dstrand in faldo_dict.values()]
return [self.rdfize(self.format_uri("{}_s{}".format(reference, faldo_dict[strand])))]
Expand Down

0 comments on commit 4937323

Please sign in to comment.