def get_fasta_file_names(self):
     fa_files = []
     pipelne_utils   = PipelneUtils()
     files = pipelne_utils.get_all_files(self.fasta_dir)
     for full_name in files.keys():    
         if (files[full_name][1] == ".unique") and ((files[full_name][0].split(".")[-1].strip() == "fa") or (files[full_name][0].split("_")[-1] == "FILTERED")):
             fa_files.append(full_name)
     return fa_files
예제 #2
0
 def get_fasta_file_names(self):
     fa_files = []
     pipelne_utils   = PipelneUtils()
     files = pipelne_utils.get_all_files(self.in_file_path)
     for full_name in files.keys():    
         if (files[full_name][1] == ".unique") and (files[full_name][0].split(".")[-1].strip() == "fa"):
             print full_name
             fa_files.append(full_name)
     return fa_files
    def get_fasta_file_names(self):
        fa_files = []
        pipelne_utils   = PipelneUtils()
        files = pipelne_utils.get_all_files(self.fasta_dir)

        for full_name in files.keys():
                
#             if (files[full_name][1] == ".unique") and ((files[full_name][0].split(".")[-1].strip() == "fa") or (files[full_name][0].split("_")[-1] == C.filtered_suffix)):
            if (full_name.endswith(self.nonchimeric_suffix)):                
                fa_files.append(full_name)
                print full_name
                self.suffix_used = self.nonchimeric_suffix
                next 
            elif (full_name.endswith(self.fa_unique_suffix)):
                fa_files.append(full_name)
                print full_name
                self.suffix_used = self.fa_unique_suffix                
        return fa_files