Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -67,7 +67,7 @@ if __name__ == "__main__": | ... | @@ -67,7 +67,7 @@ if __name__ == "__main__": |
67 | with open(os.path.join(args.inputPath, args.inputFile), mode="r") as tabfile: | 67 | with open(os.path.join(args.inputPath, args.inputFile), mode="r") as tabfile: |
68 | df = pd.read_csv(tabfile, delimiter='\t') | 68 | df = pd.read_csv(tabfile, delimiter='\t') |
69 | print("All rows in df: {}".format(len(df.index))) | 69 | print("All rows in df: {}".format(len(df.index))) |
70 | - df_filtered = df.loc[df['label'] == "exon" or df['label'] == "utr"] | 70 | + df_filtered = df.loc[(df['label'] == "exon") | (df['label'] == "utr")] |
71 | print("Only exon and utr rows in df: {}".format(len(df_filtered.index))) | 71 | print("Only exon and utr rows in df: {}".format(len(df_filtered.index))) |
72 | # print("df: {}".format(df)) | 72 | # print("df: {}".format(df)) |
73 | sequences = df_filtered['sequence'] | 73 | sequences = df_filtered['sequence'] | ... | ... |
-
Please register or login to post a comment