Skip to content

Commit 0580473

Browse files
committed
Restore offset
1 parent eaff62f commit 0580473

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

SequenceAnalysis/api-src/org/labkey/api/sequenceanalysis/RefNtSequenceModel.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,23 @@ public void setSeqLength(Integer seqLength)
536536
_seqLength = seqLength;
537537
}
538538

539+
@Nullable
540+
public File getOffsetsFile()
541+
{
542+
if (getSequenceFile() == null)
543+
{
544+
return null;
545+
}
546+
547+
ExpData d = ExperimentService.get().getExpData(_sequenceFile);
548+
if (d == null || d.getFile() == null)
549+
{
550+
return null;
551+
}
552+
553+
return FileUtil.appendName(d.getFile().getParentFile(), getRowid() + "_offsets.txt");
554+
}
555+
539556
private File getHashedDir(boolean create)
540557
{
541558
File baseDir = getBaseSequenceDir();

0 commit comments

Comments
 (0)