Skip to content

FunCode is a small python packaged used to manipulate encrypted excel files and plotting simple stats.

Notifications You must be signed in to change notification settings

Anacristina0914/FunCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FunCode

This package provides various utilities for file manipulation and plotting simple statistics. It includes functions to handle encrypted Excel files, manipulate DataFrames, and generate plots.

Table of Contents

Installation

To install the package, you can clone the repository:

git clone https://github.com/Anacristina0914/FunCode.git
cd FunCode
pip install -e .

Usage

from FunCode import matching, plotting
matching.function_name(args*)
plotting.function_name(args*)

modules

Functions on each module.

plotting

  • plot_plate_positions
  • make_barplot_sample_dist
  • make_barplot_sample_dist_twogroups

matching

  • make_excel_combinations
  • convert_num_toexcel_col
  • find_non_identical_columns
  • hamming_distance
  • find_similar_identifiers
  • find_non_identical_columns
  • get_keypass_password
  • read_encrypted_excel
  • map_str_to_value
  • rename_columns
  • sex_from_pn
  • apply_sex_from_pn

Examples

from FunCode import matching, plotting

# See all arguments for a function
help(module.function_name)

# Read encrypted excel file using pw database and a key file
encrypted_excel = matching.read_encrypted_excel(pwd_db_path=pw_db, pw_file=pw_file, key_file_path=key_path,
                                                           file_path=database_dir, file_name=sle_fulldb_name)
# Plot sample dist using a column in a df
barplot_colname = plotting.make_barplot_sample_dist(db, group_col="col_name", plot_title="sample dist col_name", 
                                    y_axis_title="counts", x_axis_title="")

About

FunCode is a small python packaged used to manipulate encrypted excel files and plotting simple stats.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages