Spaces:
Sleeping
Sleeping
supercat666
commited on
Commit
•
24d7d26
1
Parent(s):
f0489eb
fix
Browse files
cas9on.py
CHANGED
@@ -197,7 +197,7 @@ def create_bed_file_from_df(df, output_path):
|
|
197 |
strand = '+' if row["Strand"] == '+' else '-' # Ensure strand is correctly interpreted
|
198 |
gRNA = row["gRNA"]
|
199 |
score = str(row["Prediction"]) # Ensure score is converted to string if not already
|
200 |
-
transcript_id = row["Transcript
|
201 |
bed_file.write(f"{chrom}\t{start}\t{end}\t{gRNA}\t{score}\t{strand}\t{transcript_id}\n") # Include transcript ID in BED output
|
202 |
|
203 |
|
|
|
197 |
strand = '+' if row["Strand"] == '+' else '-' # Ensure strand is correctly interpreted
|
198 |
gRNA = row["gRNA"]
|
199 |
score = str(row["Prediction"]) # Ensure score is converted to string if not already
|
200 |
+
transcript_id = row["Transcript"] # Extract transcript ID
|
201 |
bed_file.write(f"{chrom}\t{start}\t{end}\t{gRNA}\t{score}\t{strand}\t{transcript_id}\n") # Include transcript ID in BED output
|
202 |
|
203 |
|