From b33fca96ebdb542957c0f42b92697dbe04c3f15c Mon Sep 17 00:00:00 2001 From: nojux-official Date: Thu, 20 Jun 2024 15:15:11 +0000 Subject: [PATCH] Function's description --- tools/revel/revel.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/revel/revel.py b/tools/revel/revel.py index 6f76f35..c44e2d0 100644 --- a/tools/revel/revel.py +++ b/tools/revel/revel.py @@ -1,3 +1,5 @@ +""" Retrieves REVEL scores for specific variants based on chromosome and position from a CSV file. """ + import pandas as pd import os @@ -5,6 +7,13 @@ revel_file = os.path.join(current_script_dir, 'revel_with_transcript_ids') def get_revel_scores(chromosome, position): + """ + Retrieve REVEL scores for variants at a specific chromosome and position. + + :param int chromosome: Chromosome number to filter the variants. + :param int position: Sequence position (hg19) to filter the variants. + :return: A pandas DataFrame containing the filtered variants with REVEL scores. + """ variants = [] revel_data = pd.read_csv(revel_file)