(a) Except when direct appeal is available, a person convicted of a crime may commence a proceeding to secure relief by filing a petition in the court in which the conviction was entered to vacate and set aside the judgment and to discharge the petitioner or to resentence the petitioner or grant a new trial or correct the sentence or make other disposition as may be appropriate, if the person claims under penalty of perjury that:
(1) Scientific evidence not available at trial establishes the petitioner's actual innocence; or
(2) The scientific predicate for the claim could not have been previously discovered through the exercise of due diligence and the facts underlying the claim, if proven and viewed in light of the evidence as a whole, would be sufficient to establish by clear and convincing evidence that no reasonable fact-finder would find the petitioner guilty of the underlying offense.
(b) Nothing contained in this subchapter shall prevent the Supreme Court or the Court of Appeals, upon application by a party, from granting a stay of an appeal to allow an application to the trial court for an evidentiary hearing under this subchapter.