def _get_pct(isomirs, mirna):
pass_pos = []<EOL>for isomir in isomirs.iterrows():<EOL><INDENT>mir = isomir[<NUM_LIT:1>]["<STR_LIT>"]<EOL>mut = isomir[<NUM_LIT:1>]["<STR_LIT>"]<EOL>mut_counts = isomir[<NUM_LIT:1>]["<STR_LIT>"]<EOL>total = mirna.loc[mir, "<STR_LIT>"] * <NUM_LIT:1.0> - mut_counts<EOL>mut_diff = isomir[<NUM_LIT:1>]["<STR_LIT>"]<EOL>ratio = mut_counts / total<EOL>if mut_counts > <NUM_LIT:10> and ratio  > <NUM_LIT> and mut != "<STR_LIT:0>" and mut_diff > <NUM_LIT:1>:<EOL><INDENT>isomir[<NUM_LIT:1>]["<STR_LIT>"] = ratio<EOL>pass_pos.append(isomir[<NUM_LIT:1>])<EOL><DEDENT><DEDENT>return pass_pos<EOL>
Get pct of variants respect to the reference
using reads and different sequences