Skip to content

Commit 35e6af0

Browse files
committed
Debugged replicate.py
1 parent 5010a9a commit 35e6af0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

encode_utils/replicate.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def does_trn_exist(self, brn, trn):
101101
lib_hash = self.get_tech_rep_hash(brn)
102102
if lib_hash:
103103
for lib_acc in lib_hash:
104-
if trn == lib_hash["trn"]:
104+
if trn == lib_hash[lib_acc]["trn"]:
105105
return True
106106
return False
107107

@@ -125,6 +125,7 @@ def suggest_trn(self, biosample_accession):
125125
if biosample_accession not in self.rep_hash:
126126
return 1
127127
else:
128+
brn = self.rep_hash[biosample_accession]["brn"]
128129
trn = len(self.rep_hash[biosample_accession]["libraries"]) + 1
129130
while self.does_trn_exist(brn=brn, trn=trn):
130131
trn += 1

0 commit comments

Comments
 (0)