diff cdhit_analysis.py @ 2:706b7acdb230 draft

planemo upload for repository https://github.com/Onnodg/Naturalis_NLOOR/tree/main/NLOOR_scripts/process_clusters_tool commit c2020ecc91cea0c8cf7439180cf796743c838b4d-dirty
author onnodg
date Tue, 21 Oct 2025 07:54:21 +0000
parents ff68835adb2b
children c6981ea453ae
line wrap: on
line diff
--- a/cdhit_analysis.py	Mon Oct 20 12:27:31 2025 +0000
+++ b/cdhit_analysis.py	Tue Oct 21 07:54:21 2025 +0000
@@ -1,14 +1,3 @@
-import argparse
-import os
-import re
-from collections import Counter, defaultdict
-from math import sqrt
-import pandas as pd
-import matplotlib
-
-matplotlib.use('Agg')  # Non-interactive backend for Galaxy
-import matplotlib.pyplot as plt
-
 """
 This script processes cluster output files from cd-hit-est for use in Galaxy.
 It extracts cluster information, associates taxa and e-values from annotation files,
@@ -26,6 +15,16 @@
 Note: Uses a non-interactive matplotlib backend (Agg) for compatibility with Galaxy.
 """
 
+import argparse
+from collections import Counter, defaultdict
+import os
+import re
+import matplotlib.pyplot as plt
+import pandas as pd
+from math import sqrt
+import openpyxl
+
+
 
 def parse_arguments(args_list=None):
     """Parse command-line arguments for the script."""