699cb4d8ab7365b3a20ddd3de56a2a0ecc8b0046,skgenome/tabio/gff.py,,read_gff,#,26
Before Change
return (dframe
.assign(start=dframe.start - 1,
score=dframe.score.replace(".", "nan").astype("float"),
gene=dframe.attribute.apply(_parse_name))
.sort_values(["chromosome", "start", "end"])
.reset_index(drop=True))
After Change
else:
// Default to a set of likely relevant tags
rx = re.compile(r"(Name|gene_id|gene_name|gene)[= ]"?(\S+?)"?(;|$)")
matches = dframe["attribute"].str.extractall(rx)
if len(matches):
dframe["gene"] = matches.xs(0, level=1)[1]
if "gene" in dframe.columns:
dframe["gene"] = dframe["gene"].fillna("-").astype("str")
else:
dframe["gene"] = ["-"] * len(dframe)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: etal/cnvkit
Commit Name: 699cb4d8ab7365b3a20ddd3de56a2a0ecc8b0046
Time: 2018-02-14
Author: eric.talevich@gmail.com
File Name: skgenome/tabio/gff.py
Class Name:
Method Name: read_gff
Project Name: sony/nnabla-examples
Commit Name: 9dab8ae56ce90f1b9ba6808a6e0673ab6f13103e
Time: 2020-12-15
Author: Krishna.Wadhwani@sony.com
File Name: GANs/stylegan2/generate.py
Class Name:
Method Name: main
Project Name: sony/nnabla-examples
Commit Name: 7d8f3f66495979f1bbd27205d422d673991709f2
Time: 2021-01-26
Author: Krishna.Wadhwani@sony.com
File Name: GANs/stylegan2/generate.py
Class Name:
Method Name: main