Skip to content

Commit

Permalink
Merge pull request #19 from Marmzy/18-remove-file-extensions-from-fil…
Browse files Browse the repository at this point in the history
…e-names

Removed file extensions in middle of file name
  • Loading branch information
Marmzy authored Mar 20, 2023
2 parents abcacaa + c37bade commit 2ea27a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ROSE_bamToGFF.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def main() -> None:
#Outputting per-bin read density
for newGFF, (bam, gff) in zip(results, product(bam_files, [args.input, args.original])):
out_df = pd.DataFrame(newGFF, columns=["GENE_ID", "locusLine"] + [f"bin_{n}_{str(Path(bam).name)}" for n in range(1, int(args.matrix)+1)])
out_name = check_path(Path(Path(gff).parents[1], "mappedGFF", f"{Path(gff).stem}_{Path(bam).name}_mapped.txt"))
out_name = check_path(Path(Path(gff).parents[1], "mappedGFF", f"{Path(gff).stem}_{Path(bam).stem}_mapped.txt"))
out_df.to_csv(out_name, sep="\t", index=False)


Expand Down
2 changes: 1 addition & 1 deletion src/ROSE_mapCollection.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def mapCollection() -> None:
mappedLoci = []

#Open mapped stitched enhancer loci file as a dataframe
mappedGFF = check_file(Path(args.dir, f"{Path(args.stitch).stem}_{Path(bam).name}_mapped.txt"))
mappedGFF = check_file(Path(args.dir, f"{Path(args.stitch).stem}_{Path(bam).stem}_mapped.txt"))
mappedGFF = pd.read_csv(mappedGFF, sep="\t", header=0, comment="#")

#Calculate signal for all stitched enhancer loci
Expand Down

0 comments on commit 2ea27a7

Please sign in to comment.