<jupyter_start><jupyter_text>1. How to get endogenous reference gene by ERgene<jupyter_code>import pandas as pd
import ERgene
data=pd.read_csv('gse.txt',sep='\t')
data=data.set_index(data.columns[0])
data.head()
ERgene.FindERG(data,3)
result
result=ERgene.FindERG(data,sort_num=21)
data2=ERgene.normalizationdata(data,result[0])<jupyter_output>calculate time:4.27s
['ASHGV40056377', 'ASHGV40057617', 'ASHGV40056316', 'ASHGV40057862', 'ASHGV40057263', 'ASHGV40057056', 'ASHGV40057006', 'ASHGV40056964', 'ASHGV40057751', 'ASHGV40056098', 'ASHGV40056672', 'ASHGV40025887', 'ASHGV40057789', 'ASHGV40056716', 'ASHGV40025758', 'ASHGV40027018', 'ASHGV40057688', 'ASHGV40026169', 'ASHGV40025445', 'ASHGV40025064', 'ASHGV40057574']
{'fraction_non_alphanumeric': 0.15789473684210525, 'fraction_numerical': 0.24653739612188366, 'mean_word_length': 12.38888888888889, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '441208', 'license': 'MIT', 'n_tokens_mistral': 431, 'n_tokens_neox': 299, 'n_words': 43, 'path': 'example/example-ERgene.ipynb', 'repo_name': 'xbello/ERgene', 'size': '722'}