Skip to content

Commit

Permalink
Try removing tk from gui.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Standage committed Jul 8, 2024
1 parent 8841806 commit d1efb70
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 21 deletions.
13 changes: 0 additions & 13 deletions lusSTR/cli/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,6 @@
import os
import re

# ------ Packages For File/Folder Directory Selection --------- #

import tkinter as tk
from tkinter import filedialog



# Create a global Tkinter root window
try:
root = tk.Tk()
root.withdraw() # Hide the root window
except:
print("No GUI available!")

#################################################################
# Functions #
Expand Down
1 change: 0 additions & 1 deletion lusSTR/scripts/file_selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

import tkinter as tk
from tkinter import filedialog
import sys
import json


Expand Down
1 change: 0 additions & 1 deletion lusSTR/scripts/folder_selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

import tkinter as tk
from tkinter import filedialog
import sys
import json


Expand Down
8 changes: 2 additions & 6 deletions lusSTR/wrappers/snps_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,9 @@ def bin_snps(sample_file, output_type, sample):
start = snp_num * 1000
if snp_num != 9:
end = start + 1000
bin_df = sorted_file.iloc[
start:end,
].reset_index(drop=True)
bin_df = sorted_file.iloc[start:end,].reset_index(drop=True)
else:
bin_df = sorted_file.iloc[
start : len(sorted_file),
].reset_index(drop=True)
bin_df = sorted_file.iloc[start : len(sorted_file),].reset_index(drop=True)
bin_df["Sample.Name"] = bin_df["Sample.Name"] + "_set" + str((snp_num + 1))
compiled_table = pd.concat([compiled_table, bin_df])
bin_df.to_csv(
Expand Down

0 comments on commit d1efb70

Please sign in to comment.