Skip to content

Commit

Permalink
Function's description
Browse files Browse the repository at this point in the history
  • Loading branch information
nojux-official committed Jun 20, 2024
1 parent 54bd757 commit b33fca9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tools/revel/revel.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
""" Retrieves REVEL scores for specific variants based on chromosome and position from a CSV file. """

import pandas as pd
import os

current_script_dir = os.path.dirname(os.path.abspath(__file__))
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)

Expand Down

0 comments on commit b33fca9

Please sign in to comment.