Skip to content

Commit

Permalink
Merge branch 'release/0.3.4' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
rhshah committed Apr 28, 2021
2 parents 039275e + 62432b1 commit cb50a0e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 25 deletions.
2 changes: 1 addition & 1 deletion genotype_variants/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

__author__ = """Ronak Shah"""
__email__ = 'rons.shah@gmail.com'
__version__ = '0.3.3'
__version__ = '0.3.4'
2 changes: 1 addition & 1 deletion genotype_variants/commands/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

__author__ = """Ronak Shah"""
__email__ = 'rons.shah@gmail.com'
__version__ = '0.3.3'
__version__ = '0.3.4'
27 changes: 6 additions & 21 deletions genotype_variants/create_all_maf_dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
def create_all_maf_dataframe(
original_dataframe, standard_dataframe, simplex_duplex_dataframe
):
"""Code to merge all the data frames generated from MAF files into one data frame
"""
"""Code to merge all the data frames generated from MAF files into one data frame"""
np.seterr(divide="ignore", invalid="ignore")
mutation_key = [
"Chromosome",
Expand Down Expand Up @@ -95,31 +94,17 @@ def create_all_maf_dataframe(
)
exit(1)

try:
df_s["Tumor_Seq_Allele2"] = df_s["Tumor_Seq_Allele1"]
logger.debug(
"genotype:variants:small_variants::create_duplex_simplex_dataframe:: Successfully generated Tumor_Seq_Allele2 column"
)
except:
e = sys.exc_info()[0]
logger.error(
"genotype:variants:small_variants::create_duplex_simplex_dataframe:: Could not generate Tumor_Seq_Allele2 column due to error, %s",
e,
)
exit(1)

if df_s.shape[0] > 0:
try:
df_s["t_alt_count_reverse_standard"] = (
df_s["t_alt_count_standard"]
- df_s["t_alt_count_forward_standard"]
df_s["t_alt_count_standard"] - df_s["t_alt_count_forward_standard"]
)
df_s["t_ref_count_reverse_standard"] = (
df_s["t_ref_count_standard"]
- df_s["t_ref_count_forward_standard"]
df_s["t_ref_count_standard"] - df_s["t_ref_count_forward_standard"]
)
df_s["t_total_count_reverse_standard"] = (
df_s["t_total_count_standard"] - df_s["t_total_count_forward_standard"]
df_s["t_total_count_standard"]
- df_s["t_total_count_forward_standard"]
)
logger.debug(
"genotype:variants:small_variants::create_all_maf_dataframe:: Successfully generated reverse count columns in standard data frame"
Expand All @@ -128,7 +113,7 @@ def create_all_maf_dataframe(
e = sys.exc_info()[0]
logger.error(
"genotype:variants:small_variants::create_all_maf_dataframe:: Could not generate reverse count columns in standard data frame due to error, %s",
e
e,
)
exit(1)
else:
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.3.3
current_version = 0.3.4
commit = True
tag = True

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@
test_suite='tests',
tests_require=test_requirements,
url='https://github.com/msk-access/genotype_variants',
version='0.3.3',
version='0.3.4',
zip_safe=False,
)

0 comments on commit cb50a0e

Please sign in to comment.