<commit_before>from sequana.viz import Volcano

def test1():
    import numpy as np
    fc = np.random.randn(1000)
    pvalue = np.random.randn(1000)
    v = Volcano(fc, -np.log10(pvalue**2), pvalue_threshold=3)
    v.plot()
    v.plot(logy=True)

<commit_msg>Update test for volcano plot<commit_after>from sequana.viz import Volcano
import pandas as pd


def test1():
    import numpy as np

    fc = np.random.randn(1000)
    pvalue = np.random.randn(1000)
    df = pd.DataFrame({"log2FoldChange": fc, "padj": pvalue ** 2})
    v = Volcano(data=df, pvalue_threshold=3)
    v.plot()
    v.plot(logy=True)
{'fraction_non_alphanumeric': 0.13388429752066117, 'fraction_numerical': 0.04132231404958678, 'mean_word_length': 3.488888888888889, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, '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}}
{'dir': 'git-commits-cleaned', 'id': '4520256', 'n_tokens_mistral': 256, 'n_tokens_neox': 230, 'n_words': 53}