Skip to content
Snippets Groups Projects
Commit d2a976c9 authored by nfontrod's avatar nfontrod
Browse files

src/db_utils/fill_exon_n_gene_table.py: fix get_genomic_region function

parent 9f789554
No related branches found
No related tags found
No related merge requests found
...@@ -21,8 +21,9 @@ def get_genomic_region(bed_file: Path) -> pd.DataFrame: ...@@ -21,8 +21,9 @@ def get_genomic_region(bed_file: Path) -> pd.DataFrame:
:param bed_file: A bed file containing intern exons :param bed_file: A bed file containing intern exons
:return: the bed file as a dataframe :return: the bed file as a dataframe
""" """
df = pd.read_csv(bed_file, sep="\t") df = pd.read_csv(bed_file, sep="\t",
df.columns = ["chromosome", "start", "stop", "id", "score", "strand"] names=["chromosome", "start", "stop", "id",
"score", "strand"])
df = df.loc[(df.stop - df.start > 2), :] df = df.loc[(df.stop - df.start > 2), :]
return df return df
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment