Skip to content

Commit

Permalink
fix further clarify
Browse files Browse the repository at this point in the history
  • Loading branch information
lucia.pena.perez@scilifelab.se committed Aug 14, 2023
1 parent 89b3370 commit 3a643cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/drop_sample_annot.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def __init__(self, bam, sample, strandedness, single_end, gtf, count_file, out_f
def final_annot(count_file: Path, ref_annot: Path, out_file: Path):
"""Concatinates the Sample Annotation produced by SampleAnnotation with the one
provided for the reference samples, checking for duplicate sample IDs"""
df_samples = pd.read_csv("drop_pt_annot.tsv", sep="\t")
df_samples = pd.read_csv("drop_annotation_given_samples.tsv", sep="\t")
df_reference = pd.read_csv(ref_annot, sep="\t")
df_reference["GENE_COUNTS_FILE"] = count_file
df_samples["COUNT_OVERLAPS"] = df_reference["COUNT_OVERLAPS"].iloc[0]
Expand Down Expand Up @@ -131,6 +131,6 @@ def final_annot(count_file: Path, ref_annot: Path, out_file: Path):

args = parser.parse_args()
SampleAnnotation(
args.bam, args.sample, args.strandedness, args.single_end, args.gtf, args.count_file, "drop_pt_annot.tsv"
args.bam, args.sample, args.strandedness, args.single_end, args.gtf, args.count_file, "drop_annotation_given_samples.tsv"
)
final_annot(args.count_file, args.ref_annot, args.output)

0 comments on commit 3a643cc

Please sign in to comment.